Core py5 class for leveraging py5’s functionality.
Core py5 class for leveraging py5’s functionality. This is analogous to the PApplet class in Processing. Launch the Sketch with the run_sketch() method.
The core functions to be implemented by the py5 coder are
draw. The first two will be run once at Sketch initialization and the third will be run in an animation thread, once per frame. The following event functions are also supported:
When coding in class mode, all of the above functions should be class methods. When coding in module mode or imported mode, the above functions should be stand-alone functions available in the local namespace in which run_sketch() was called.
Underlying Java class: PApplet
The following methods and fields are provided:
Creating / Reading¶
Loading / Displaying¶
Lights & Camera¶
Updated on September 23, 2021 09:34:27am UTC