Algosim documentation: HexColorCode

HexColorCode

Returns a HTML-like 24-bit hexadecimal RGB code for a colour as a string.

Syntax

Description

If c is a colour, then HexColorCode(c) returns a textual representation of the colour as a 24-bit hexadecimal RGB value with a number sign prefix: #RRGGBB.

Examples

HexColorCode(color("gold"))
#FFD700

See also