colorRGBToHex

Synopsis

string colorRGBToHex(float r, float g, float b)

Parameters

Returns

returns hex color string (format: "#rrggbb") for RGB color in [0,1].

This function converts an RGB color to a hex color string. It clamps r, g, and b to the range [0,1].

Related

Examples

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

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