Set the Sketch window as resizable by the user.
1def setup(): 2 surface = py5.get_surface() 3 surface.set_resizable(True) 4 5 6def draw(): 7 py5.square(py5.random(py5.width), py5.random(py5.height), 10)
Set the Sketch window as resizable by the user. The user will be able to resize the window in the same way as they do for many other windows on their computer. By default, the Sketch window is not resizable.
Underlying Processing method: PSurface.setResizable
set_resizable(resizable: bool, /) -> None
resizable: bool - should the Sketch window be resizable
Updated on February 10, 2022 17:51:31pm UTC