end_raw()#

Complement to begin_raw(); they must always be used together.

Examples#

 1def setup():
 2    py5.size(400, 400, py5.P2D)
 3    py5.begin_raw(py5.PDF, "raw.pdf")
 4
 5
 6def draw():
 7    py5.line(py5.pmouse_x, py5.pmouse_y, py5.mouse_x, py5.mouse_y)
 8
 9
10def key_pressed():
11    if py5.key == ' ':
12        py5.end_raw()
13        py5.exit_sketch()

Description#

Complement to begin_raw(); they must always be used together. See the begin_raw() reference for details.

Underlying Processing method: endRaw

Syntax#

end_raw() -> None

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