<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 to 255. |
Returns
integer -
The blended color value, in the range 1 to 255.
- Source code: utils/Color.js (Line 1288)
Please login to continue.