Lua:getScreenWidth
Jump to navigation
Jump to search
<> Lua API Reference
function getScreenWidth() : integer
Returns the screen width.
This function has no parameters.
integer — The width of the screen in pixels.
local width = getScreenWidth()
print("Screen width: " .. width)
Main Pages
Core Lua documentation entry points
◆ Lua
◆ Script Engine