no_clip()#

Disables the clipping previously started by the clip() function.

Examples#

 1def setup():
 2    py5.size(200, 200)
 3    py5.image_mode(py5.CENTER)
 4
 5
 6def draw():
 7    py5.background(204)
 8    if py5.is_mouse_pressed:
 9        py5.clip(py5.mouse_x, py5.mouse_y, 100, 100)
10    else:
11        py5.no_clip()
12
13    py5.line(0, 0, py5.width, py5.height)
14    py5.line(0, py5.height, py5.width, 0)

Description#

Disables the clipping previously started by the clip() function.

Underlying Processing method: noClip

Syntax#

no_clip() -> None

Updated on November 12, 2021 11:30:58am UTC