Name

blend()

Examples
background(loadImage("rockies.jpg"))
img = loadImage("bricks.jpg")
image(img, 0, 0)
blend(img, 0, 0, 33, 100, 67, 0, 33, 100, ADD)
background(loadImage("rockies.jpg"))
img = loadImage("bricks.jpg")
image(img, 0, 0)
blend(img, 0, 0, 33, 100, 67, 0, 33, 100, SUBTRACT)
background(loadImage("rockies.jpg"))
img = loadImage("bricks.jpg")
image(img, 0, 0)
blend(img, 0, 0, 33, 100, 67, 0, 33, 100, DARKEST)
background(loadImage("rockies.jpg"))
img = loadImage("bricks.jpg")
image(img, 0, 0)
blend(img, 0, 0, 33, 100, 67, 0, 33, 100, LIGHTEST)
Description
Syntax
blend(sx, sy, sw, sh, dx, dy, dw, dh, mode)
blend(src, sx, sy, sw, sh, dx, dy, dw, dh, mode)
Parameters
src
sx
sy
sw
sh
dx
dy
dw
dh
mode
Related alpha()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License