The Py5Surface object is the actual window py5 draws animations to.
The Py5Surface object is the actual window py5 draws animations to. You can use this to interact with the window and change some of its characteristics, such as the window title or location.
Underlying Java class: PSurface
The following methods and fields are provided:
get_native(): Get the Sketch’s Java native window object.
is_stopped(): Determine if the surface is currently running an animation.
pause_thread(): Pause a running Sketch.
resume_thread(): Resume a paused Sketch.
set_always_on_top(): Set the Sketch window to always be on top of other windows.
set_icon(): Set the Sketch window icon.
set_location(): Set the Sketch’s window location.
set_resizable(): Set the Sketch window as resizable by the user.
set_size(): Set a new width and height for the Sketch window.
set_title(): Set the Sketch window’s title.
set_visible(): Set the Sketch window’s visiblity.
stop_thread(): Stop the animation thread.
Updated on September 16, 2021 14:31:43pm UTC