lovr.graphics.getWidth

Returns the width of the desktop window.

width = lovr.graphics.getWidth()

Arguments

None

Returns

NameTypeDescription
widthnumberThe width of the window, in pixels.

See also