Global Command: getWindowBrightness

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 22:45, 15 May 2023 by EK (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the brightness (gamma) of the window. A value of 0 is completely dark, 100 is normal brightness.

Related functions setWindowBrightness


Syntax

getWindowBrightness()


Parameters

none


Return values

Type Description
integer The current gamma/brightness value in the range of 0 (completely dark) to 100 (normal brightness).


Examples

Example 1: Do something, if the brightness value is less than 50%.

if getWindowBrightness() < 50 then
  -- do something
end