clip()

Rendering

Description

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

NameTypeDescription
xfloatx-coordinate
yfloaty-coordinate
wfloatwidth of clip region
hfloatheight of clip region

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...