Global Command: setWindowBrightness

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 23:49, 15 May 2023 by EK (talk | contribs) (EK moved page SetWindowBrightness (CMS) to Global Command: setWindowBrightness)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Related functions getWindowBrightness


Syntax

setWindowBrightness(brightness)


Parameters

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


Return values

Type Description
boolean False if that feature is not supported, true otherwise.


Examples

Example 1: Set the window gamma/brightness to 80%.

setWindowBrightness(80)