Skip to content

setPosition()

Set the display's position on the screen.

display.setPosition(x, y)

The screen origin (0, 0) is at the top-left.

Parameters

display.setPosition(x, y)
Parameter Type Default Description
x int or float required The new horizontal position of the window's top-left corner, in pixels.
y int or float required The new vertical position of the window's top-left corner, in pixels.