| Maptitude GISDK Help |
Creates a color based on hue, lightness and saturation.
c = ColorHLS(real hue, real lightness, real saturation)
| Argument | Contents |
|---|---|
| hue | Hue in color spectrum, from 0 (red) to 359 (violet), or -1 for an achromatic color (e.g. white, gray, black) |
| lightness | Lightness value from 0 (lightest, white) to 1 (darkest, black), with 0.5 being the value for maximally bright pure red, green or blue colors |
| saturation | Saturation, from 0 (unsaturated, achromatic) to 1 (maximally saturated, pure color) |
A color (red, green, blue, and alpha).
Pure red with maximum brightness corresponds to (hue = 0, lightness = 0.5, saturation = 1). Pure green and pure blue are similar with hues of 120 and 240 respectively.
Pure white corresponds to (hue = -1, lightness = 0, saturation = 0).
Pure black corresponds to (hue = -1, lightness = 1, saturation = 0).
Opacity can also be set with the alpha selector on a color; for more information, see Compound Variables.
| Function | Summary |
|---|---|
| ColorRGB() | Creates a color based on the amounts of red, green and blue |
| ColorHSV() | Creates a color based on hue, saturation and brightness |
| ColorCIE() | Creates a color based on its (x,y,Y) coordinates in CIE chromaticity space. |
| ©2025 Caliper Corporation | www.caliper.com |