prg_color_from_hls()
Abstract
Creates a color object from an HLS specification.
Syntax
prg_color_from_hls (hue, lightness, saturation)
| Argument | Type | Description |
|---|---|---|
hue |
double |
Hue, from 0.0 to 1.0 (see Details). |
lightness |
double |
Lightness, from 0.0 (black) to 1.0 (white). |
saturation |
double |
Saturation, from 0.0 (unsaturated) to 1.0 (most saturated). |
Return Type
PrgT_Color
The requested color.
Header
prg_color.h
Details
This function creates a color definition from an HLS (hue, lightness, saturation) specification. The color can be used by any function requiring a PrgT_Color argument.
The hue value is a point on a continuous color wheel, where 0.0 and 1.0 both represent pure red, 1/3 (0.333…) represents pure green, and 2/3 (0.666…) represents pure blue.