a port of the Processing Visualization Language
Name

blendColor()

Examples
example pic
color orange = color(204, 102, 0);
color blue = color(0, 102, 153);
color orangeblueadd = blendColor(orange, blue, ADD);
background(51);
noStroke();
fill(orange);
rect(14, 20, 20, 60);
fill(orangeblueadd);
rect(40, 20, 20, 60);
fill(blue);
rect(66, 20, 20, 60);
Description

Blends two color values together based on the blending mode given as the MODE parameter. The possible modes are described in the reference for the blend() function.

Syntax
blendColor(c1,c2,MODE)
Parameters
c1 color: the first color to blend
c2 color: the second color to blend
MODE Either BLEND, ADD, SUBTRACT, DARKEST, LIGHTEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, or BURN
Returns float
Usage Web & Application
Related blend()
color()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub