Difference between revisions of "SetWindowBrightness"
From The Official Visionaire Studio: Adventure Game Engine Wiki
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==setWindowBrightness== | ==setWindowBrightness== | ||
− | <div class="command-min-version-info">Available since: <span class="command-min-version"> | + | <div class="command-min-version-info">Available since: <span class="command-min-version">v4.0</span></div> |
<div class="command-doc">Sets the brightness (gamma) for the window.</div> | <div class="command-doc">Sets the brightness (gamma) for the window.</div> | ||
Line 10: | Line 10: | ||
====Brightness==== | ====Brightness==== | ||
:'''int''' - The brightness (gamma) value. 0 is completely dark and 100 is normal brightness. | :'''int''' - The brightness (gamma) value. 0 is completely dark and 100 is normal brightness. | ||
+ | : | ||
+ | :Returns false if not supported otherwise true. | ||
===Flags=== | ===Flags=== | ||
===Return Values=== | ===Return Values=== | ||
Line 18: | Line 20: | ||
setWindowBrightness(100) | setWindowBrightness(100) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− |
Revision as of 22:41, 30 April 2015
Contents
setWindowBrightness
Available since: v4.0
Sets the brightness (gamma) for the window.
Lua Syntax:
setWindowBrightness(Brightness)
Arguments
Brightness
- int - The brightness (gamma) value. 0 is completely dark and 100 is normal brightness.
- Returns false if not supported otherwise true.
Flags
Return Values
None.
Examples
Example 1: basic set brightness command
setWindowBrightness(100)