window_y

window_y

The y-coordinate of the current window location.

Examples

1
2
3
def draw():
    py5.rect(py5.random(py5.width), py5.random(py5.height), 10, 10)
    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