HexColorCode
Returns a HTML-like 24-bit hexadecimal RGB code for a colour as a string.
Syntax
-
HexColorCode(c)
-
c
is a colour
-
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