window_y

window_y#

The y-coordinate of the current window location.

Examples#

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 March 06, 2023 02:49:26am UTC