Skip to content

setSize()

Set the display's width and height.

display.setSize(width, height)

Parameters

display.setSize(width, height)
Parameter Type Default Description
width int or float required The new width, in pixels.
height int or float required The new height, in pixels.