Reference+
Name
blendColor()
Class
PImage
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
pimg.blendColor(c1, c2, mode)
Parameters
pimg
(PImage)
any object of type PImagec1
(int)
the first color to blendc2
(int)
the second color to blendmode
(int)
either BLEND, ADD, SUBTRACT, DARKEST, LIGHTEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, OVERLAY, HARD_LIGHT, SOFT_LIGHT, DODGE, or BURN
Return
int
Related
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.