colorRGBOToHex

Syntax

string colorRGBOToHex(red, green, blue, opacity)

Parameters

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

Examples

colorRGBOToHex(0,0.5,1,0.5)
# result = "#0080FF80"

Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.