- Documentation
- Server functions
- setSunColor
Function
setSunColor
Stores the sun colour: core and glow (corona), each RGB 0-255. Without the last three numbers the glow gets the core colour.
Syntax
bool setSunColor(int aRed, int aGreen, int aBlue [, int bRed = aRed, int bGreen = aGreen, int bBlue = aBlue])Arguments
aRedint- Core red.
aGreenint- Core green.
aBlueint- Core blue.
bRedint, optional = aRed- Glow red.
bGreenint, optional = aGreen- Glow green.
bBlueint, optional = aBlue- Glow blue.
Returns
true on success.
Example
setSunColor(255, 80, 0, 255, 160, 60)
Notes
State for scripts. The game sun does not change yet.