colorHSVToHex function

string colorHSVToHex(hue, saturation, value)

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

Returns a hexadecimal color string (format: "#rrggbb") for an HSV color.

This 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"