Name

copy()

Examples
img = loadImage("apples.jpg")
image(img, 0, 0, width, height)
copy(7, 22, 10, 10, 35, 25, 50, 50)
stroke(255)
noFill()
# Rectangle shows area being copied
rect(7, 22, 10, 10)
Description
Syntax
copy(sx, sy, sw, sh, dx, dy, dw, dh)
copy(src, sx, sy, sw, sh, dx, dy, dw, dh)
Parameters
sx
sy
sw
sh
dx
dy
dw
dh
src
Related alpha()
blend()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License