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 -

The blended color value, in the range 1 to 255.

Source code: utils/Color.js (Line 1141)
doc_phaser
2017-02-14 10:41:49
Comments
Leave a Comment

Please login to continue.