Category: Arithmetics
Since engine version: 1.0 OC
HSL
Description
Creates a 32 bit color value from three parameters. Range is 0-255 for all parameters.
Syntax
int HSL(int byH, int byS, int byL);
Parameters
- byH:
- Hue of the color. 0 is red, 85 is green, 170 is blue, and 255 is red again.
- byS:
- Saturation of the color. This is the color contrast.
- byL:
- Brightness of the color. A brightness of 0 would correspond to RGB(0,0,0).
Examples
SetSkyAdjust(HSL(0,255,127));
Makes a ruddy sky.