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