clip()
RenderingDescription
Limits the rendering to a rectangular area. Only pixels inside the clip region will be drawn.
Syntax
void clip(float x, float y, float w, float h)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | x-coordinate |
| y | float | y-coordinate |
| w | float | width of clip region |
| h | float | height of clip region |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...