Color.blendSoftLight()

<static> blendSoftLight(a, b) → {integer} Darkens or lightens the colors, depending on the source color value. If the source color is lighter than 0.5, the backdrop is lightened, as if it were dodged;this is useful for adding highlights to a scene. If the source color is darker than 0.5, the backdrop is darkened, as if it were burned in.The degree of lightening or darkening is proportional to the difference between the source color and 0.5;if it is equal to 0.5, the backdrop is uncha

Color.blendScreen()

<static> blendScreen(a, b) → {integer} Multiplies the complements of the backdrop and source color values, then complements the result.The result color is always at least as light as either of the two constituent colors.Screening any color with white produces white; screening with black leaves the original color unchanged. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Ret

Color.blendReflect()

<static> blendReflect(a, b) → {integer} Reflect blend mode. This mode is useful when adding shining objects or light zones to images. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 1318)

Color.blendPinLight()

<static> blendPinLight(a, b) → {integer} If the backdrop color (light source) is lighter than 50%, the blendDarken mode is used, and colors lighter than the backdrop color do not change.If the backdrop color is darker than 50% gray, colors lighter than the blend color are replaced, and colors darker than the blend color do not change. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 t

Color.blendPhoenix()

<static> blendPhoenix(a, b) → {integer} Phoenix blend mode. This subtracts the lighter color from the darker color, and adds 255, giving a bright result. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 1344)

Color.blendOverlay()

<static> blendOverlay(a, b) → {integer} Multiplies or screens the colors, depending on the backdrop color.Source colors overlay the backdrop while preserving its highlights and shadows.The backdrop color is not replaced, but is mixed with the source color to reflect the lightness or darkness of the backdrop. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer

Color.blendNormal()

<static> blendNormal(a, b) → {integer} Blends the source color, ignoring the backdrop. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 990)

Color.blendNegation()

<static> blendNegation(a, b) → {integer} Negation blend mode. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value, in the range 1 to 255. Source code: utils/Color.js (Line 1099)

Color.blendMultiply()

<static> blendMultiply(a, b) → {integer} Multiplies the backdrop and source color values.The result color is always at least as dark as either of the two constituentcolors. Multiplying any color with black produces black;multiplying with white leaves the original color unchanged. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to blend, in the range 1 to 255. Returns integer - The blended color value,

Color.blendLinearLight()

<static> blendLinearLight(a, b) → {integer} This blend mode combines Linear Dodge and Linear Burn (rescaled so that neutral colors become middle gray).Dodge applies to values of top layer lighter than middle gray, and burn to darker values.The calculation simplifies to the sum of bottom layer and twice the top layer, subtract 128. The contrast decreases. Parameters Name Type Description a integer The source color to blend, in the range 1 to 255. b integer The backdrop color to ble