end_record()#

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

Examples#

def setup():
    py5.size(400, 400)
    py5.begin_record(py5.PDF, "everything.pdf")


def draw():
    py5.ellipse(py5.mouse_x, py5.mouse_y, 10, 10)


def mouse_pressed():
    py5.end_record()
    py5.exit_sketch()

Description#

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

Underlying Processing method: endRecord

Signatures#

end_record() -> None

Updated on March 06, 2023 02:49:26am UTC