get_surface()

get_surface()

Get the Py5Surface object used for the Sketch.

Examples

1
2
py5.run_sketch(block=False)
surface = py5.get_surface()

Description

Get the Py5Surface object used for the Sketch.

Underlying Processing method: getSurface

Syntax

get_surface() -> Py5Surface

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