Difference between revisions of "Lua:getScreenHeight"
Jump to navigation
Jump to search
(Created page with "<p> <b>getScreenHeight()</b>: Returns the screen height </p> <pre> print(getScreenHeight()) </pre>") |
|||
| Line 1: | Line 1: | ||
| − | + | [[Category:Lua]] | |
| − | + | {{CodeBox|'''function''' getScreenHeight() ''':''' integer}} | |
| − | + | ||
| + | Returns the screen height. | ||
| + | |||
| + | ===Function Parameters=== | ||
| + | This function has no parameters. | ||
| + | |||
| + | ===Returns=== | ||
| + | integer — The height of the screen in pixels. | ||
| + | |||
| + | ===Examples=== | ||
| + | |||
<pre> | <pre> | ||
| − | + | local height = getScreenHeight() | |
| + | print("Screen height: " .. height) | ||
</pre> | </pre> | ||
| + | |||
| + | {{LuaSeeAlso}} | ||
Latest revision as of 03:44, 21 June 2026
Returns the screen height.
Function Parameters[edit]
This function has no parameters.
Returns[edit]
integer — The height of the screen in pixels.
Examples[edit]
local height = getScreenHeight()
print("Screen height: " .. height)