end_record()#

Stops the recording process started by begin_record() and closes the file.

Examples#

 1def setup():
 2    py5.size(400, 400)
 3    py5.begin_record(py5.PDF, "everything.pdf")
 4
 5
 6def draw():
 7    py5.ellipse(py5.mouse_x, py5.mouse_y, 10, 10)
 8
 9
10def mouse_pressed():
11    py5.end_record()
12    py5.exit_sketch()

Description#

Stops the recording process started by begin_record() and closes the file.

Underlying Processing method: endRecord

Syntax#

end_record() -> None

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