colorRGBToHex

Syntax

string colorRGBToHex(red, green, blue)

Parameters

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

Examples

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

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