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