Skip to main content

The "color_get_hex" Function

Syntax#

color_get_hex(color);
ArgumentTypeDescription
colorcolorAn RGB color to convert to Hex

Description#

Returns a Hex color code, as a string, from an RGB color. Result will be formatted as #RRGGBB.

Example#

color = color_get_hex(c_red);