video_gamma

The current screen brightness setting, in percent of the normal brightness. A gamma correction can be performed by setting this variable, or the screen can be dimmed or brightened. The setting also affects the desktop in window mode.

Range:

50 .. 150 (default = 100, medium brightness)

Type:

var

Remarks:

This variable is not supported by all video cards.

Edition:

 C  

Example:

function dim_screen_low()
{
  while (video_gamma > 50) {
    video_gamma -= 5*time_step;
    wait(1);
	}
} 

See also:

video_switch, video_mode, video_alpha

► latest version online