Maptitude GISDK Help

ColorHLS()

Summary

Creates a color based on hue, lightness and saturation.

 

Syntax

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)

 

Returns

A color (red, green, blue, and alpha).

 

Notes

See Also

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