colorRGBToHex
Syntax
string colorRGBToHex(red, green, blue)
Parameters
- 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
Returns hexadecimal color string (format: "#rrggbb") for RGB color in [0,1].
Description
This function converts an RGB color to a hexadecimal color string. It clamps red, green, and blue to the range [0,1].
Related
- colorHexToH function
- colorHexToS function
- colorHexToV function
- colorHexToR function
- colorHexToG function
- colorHexToB function
- colorHexToO function
- colorHSVToHex function
- colorHSVOToHex function
- colorRGBOToHex function
Examples
colorRGBToHex(0,0.5,1) # result = "#0080FF"
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.