Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
HSL
Category:
Arithmetics
Since engine version:
4.9.5.0 CE
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:
Brightniss of the color. A brightness of 0 would correspond to
RGB
(0,0,0).
Examples
SetSkyAdjust
(HSL(0,255,127));
Makes a ruddy sky.
SetColorDw
(HSL(
Random
(256),255,127),
GetHiRank
(0));
Colors the highest ranking clonk of the first player in a strong, random color.
See also:
HSLa
,
RGB
,
RGBa
Newton, Juni 2005
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script