HSLa

Category: Arithmetics
Since engine version: 1.0 OC

Description

Creates a 32 bit color value from four parameters. Range is 0-255 for all parameters.

Syntax

int HSLa(int byH, int byS, int byL, int byA);

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).
byA:
Opacity of the color.

Example

SetClrModulation(HSLa(128,255,128,40));
Colors this object in a somewhat transparent and spooky green.
See also: HSLa, RGB, RGBa
Newton, 2005-06