colorRGBToHex function

string colorRGBToHex(red, green, blue)

red float Red value in [0,1] of RGB color.

green float Green value in [0,1] of RGB color.

blue float Blue value in [0,1] of RGB color

Returns a hexadecimal color string (format: "#rrggbb") for an RGB color in [0,1].

This function converts an RGB color to a hexadecimal color string. It clamps red, green, and blue to the range [0,1].

Related

Examples

colorRGBToHex(0,0.5,1)
# result = "#0080FF"