FadeRange
From ZDoom Wiki
void FadeRange (int red1, int green1, int blue1, fixed amount1, int red2, int green2, int blue2, fixed amount2, fixed seconds);
Usage
FadeRange sets the current flash to the first color set and then fades it to the second color set over the specified number of seconds.
Parameters
- red1: Amount of red in the initial flash from 0-255.
- green1: Amount of green in the initial flash from 0-255.
- blue1: Amount of blue in the initial flash from 0-255.
- amount1: Intensity of the initial flash from 0-1.0.
- red2: Amount of red in the final flash from 0-255.
- green2: Amount of green in the final flash from 0-255.
- blue2: Amount of blue in the final flash from 0-255.
- amount2: Intensity of the final flash from 0-1.0.
- seconds: Time needed to complete the fade in seconds.
Examples
script 1 (void)
{
// fade from 80% green to 80% blue in two seconds
FadeRange (0, 255, 0, 0.8, 0, 0, 255, 0.8, 2.0);
}