colorRGBOToHex

Synopsis

string colorRGBOToHex(float r, float g, float b, float o)

Parameters

Returns

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

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

Related

Examples

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

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