ChangeGamma()

Syntax

ChangeGamma(R, G, B, Flags)
Description
Changes the Gamma for the current screen. This only works in full screen mode (not in windowed mode). Red, Green and Blue channels can be changed individually. This command can be used to do full screen fadein/fadeout, color splashing etc.. If it does not do anything, then the hardware does not support it (no emulation is provided, due to the high number of operations required to perform it in software).

The 'Flags' parameter can take the following values:
   0   : Simply calculate the new Gamma ramp based on the reference one.
   1   : Set the actual gamma ramp as the reference. To be done at least
         once before calling it with 0. RGB-Parameters are ignored.
The normal use of the ChangeGamma() function should look like:
  ChangeGamma(0,0,0,1)            ; to be done at least once at start (e.g. after loading a sprite)
  ChangeGamma(Red,Green,Blue,0)   ; change the actual gamma value

Supported OS

Windows

<- ChangeAlphaIntensity() - Sprite Index - ClearScreen() ->