end_record()

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 Java method: endRecord

Syntax

end_record() -> None

Updated on September 11, 2021 16:51:34pm UTC