Skip to content

get_screen_width

Return the window width in pixels.

Takes no arguments.

local width = get_screen_width()

Related: get_screen_height, window_size.

See the drawing guide for more examples and limits.