Set a new width and height for the Sketch window.
def draw(): py5.square(py5.random(py5.width), py5.random(py5.height), 10) py5.run_sketch(block=False) # while the sketch is running, change the window size py5.window_resize(400, 400)
Set a new width and height for the Sketch window. You do not need to call window_resizable() before calling this.
Underlying Processing method: windowResize
window_resize( new_width: int, # new window width new_height: int, # new window height /, ) -> None
Updated on March 06, 2023 02:49:26am UTC