window_y#

The y-coordinate of the current window location.

Examples#

1def draw():
2    py5.rect(py5.random(py5.width), py5.random(py5.height), 10, 10)
3    py5.println(f'Sketch window location is ({py5.window_x}, {py5.window_y})')

Description#

The y-coordinate of the current window location. The location is measured from the Sketch window’s upper left corner.

Underlying Processing field: windowY

Updated on February 11, 2022 23:19:53pm UTC