Syntax
- string colorHSVToHex(hue, saturation, value)
Parameters
- hue—float (range[0, 360])H value in degrees of HSV color.
- saturation—float (range[0, 1])S value of HSV color.
- value—float (range[0, 1])V value of HSV color.
Returns
Returns hexadecimal color string (format: "#rrggbb") for HSV color.
Description
The colorHSVToHex function converts an HSV color to a hexadecimal color string. It converts negative degrees or degrees greater than 360 for hue to the range [0,360]. It clamps saturation and value to the range [0,1].
Related
Examples
colorHSVToHex(90,0.5,0.5)
# result = "#608040"