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.

Returns
integer -

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

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

Please login to continue.