colorHSVOToHex
Syntax
string colorHSVOToHex(hue, saturation, value, opacity)
Parameters
- hue (float)
H value in [0,360] degrees of HSV color - saturation (float)
S value in [0,1] of HSV color - value (float)
V value in [0,1] of HSV color - opacity (float)
opacity value in [0,1]
Returns
Returns hexadecimal color string (format: "#rrggbboo") for HSV color with opacity value.
Description
This function converts an HSV color with opacity to a hexadecimal color string. It converts negative degrees or degrees greater than 360 for hue to the range [0,360]. It clamps saturation, value, and opacity to the range [0,1].
Related
- colorHexToH function
- colorHexToS function
- colorHexToV function
- colorHexToR function
- colorHexToG function
- colorHexToB function
- colorHexToO function
- colorHSVToHex function
- colorRGBToHex function
- colorRGBOToHex function
Examples
colorHSVOToHex(90,0.5,0.5,0.5) # result = "#60804080"
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.