SetSkyFade (deprecated since 4.9.5.0 CE)

Category: Sky
Since engine version: 4.6.5.0 CP

Description

Changes the color of the sky. This will set the 8 bit palette colors 0 (initial) to 10 (destination) to a gradient from the initial to the destination color. Obviously, this only makes sense with color gradient skies.

Syntax

void SetSkyFade (int fromRed, int fromGreen, int fromBlue, int toRed, int toGreen, int toBlue);

Parameters

fromRed:
Red value (0-255) of the initial color.
fromGreen:
Green value (0-255) of the initial color.
fromBlue:
Blue value (0-255) of the initial color.
toRed:
Red value (0-255) of the final color.
toGreen:
Green value (0-255) of the final color.
toBlue:
Blue value (0-255) of the final color.

Remark

This function is deprecated, and only works properly in the old 8-bit graphics system (for NewGfx it is emulated makeshift). In doing so, the parameters toRed, toGreen and toBlue are ignored. Instead, SetSkyAdjust should be used.
By emulating SetSkyColor and SetSkyFade both have the same function: SetSkyColor(0, r, g, b) == SetSkyFade(r, g, b)

Example

SetSkyFade(0,0,0,255,255,255);
Sets the sky to a gradient from black to white.

Changelog

Date Author Version Description
24th December 2022 Funni 4.9.5.0 CE Deprecated: 8Bit-DDraw was removed with the first version of Clonk Endeavour.
See also: GetSkyColor, SetGamma, SetSkyAdjust, SetSkyColor
Sven2, June 2002
Funni, 24th December 2022