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 Java method: getSurface

Syntax

get_surface() -> Py5Surface

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