Global Command: setWindowBrightness

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected from SetWindowBrightness (CMS))

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)