end_raw()

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
def setup():
    py5.size(400, 400, py5.P2D)
    py5.begin_raw(py5.PDF, "raw.pdf")


def draw():
    py5.line(py5.pmouse_x, py5.pmouse_y, py5.mouse_x, py5.mouse_y)


def key_pressed():
    if py5.key == ' ':
        py5.end_raw()
        py5.exit_sketch()

Description

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

Underlying Java method: endRaw

Syntax

end_raw() -> None

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