Ets_Gui_Color_From_HLS()
Note: Requires OPNET Development Kit
Abstract
Returns a color from an HLS specification.
Syntax
Ets_Gui_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
EtsT_Color
The requested color.
Header
ets_api_gui.h
Details
This function creates a color definition from an HLS (hue, lightness, saturation) specification. The color can be used by any function requiring an EtsT_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.