Name | clip() |
||||||||
---|---|---|---|---|---|---|---|---|---|
Examples |
size(200, 200) noFill() imageMode(CORNER) background(204) clip(25, 25, 125, 125) line(0, 0, width, height) line(0, height, width, 0) | ||||||||
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 |
|
Updated on Mon Sep 21 15:53:24 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License