Name

clip

Description Limits the rendering to the boundaries of a rectangle defined by the parameters. The boundaries are drawn based on the state of the imageMode() fuction, either CORNER, CORNERS, or CENTER.
Syntax
clip(x1, y1, x2, y2)
Parameters
x1int: x coordinate of first corner of bounding box
y1int: y coordinate of first corner of bounding box
x2int: x coordinate of second corner of bounding box
y2int: y coordinate of second corner of bounding box
Creative Commons License