Maptitude GISDK Help |
Returns the hue, saturation and brightness values of a color.
hsv_array = GetColorHSV(color c)
Argument |
Contents |
c |
The color whose hue, saturation and brightness values are determined |
An array of three (3) elements: the hue, saturation and brightness values.
Element |
Type |
Contents |
1 |
Real |
Hue in color spectrum, from 0 (red) to 359 (violet), or -1 for an achromatic color (e.g. white, gray, black). |
2 |
Real |
Saturation, from 0 (unsaturated, achromatic) to 1 (maximally saturated, pure color). |
3 |
Real |
Brightness value from 0 (dark) to 1 (light), with maximally bright pure red, green and blue colors having a value of 1. |
Pure red with maximum brightness corresponds to (hue = 0, saturation = 1, value = 1). Pure green and pure blue are similar with hues of 120 and 240 respectively.
Pure white corresponds to (hue = -1, saturation = 0, value = 1).
Pure black corresponds to (hue = -1, saturation = 0, value = 0).
Function |
Summary |
Creates a color based on hue, saturation, and brightness |
©2025 Caliper Corporation | www.caliper.com |