ColorTools
HexToRGB24
convert hex string to RGB value
Calling Sequence
Parameters
Description
Examples
Compatibility
HexToRGB24(hex)
hex
-
string; hex code for color, can be a 12-bit or 24-bit hex code with or without a leading "#": "#rrggbb", "rrggbb", "#rgb", or "rgb"
The HexToRGB24 procedure converts from a hex code to the RGB values. If the input is not a valid hex color value, an error occurs.
with⁡ColorTools:
HexToRGB24⁡#00FF00
0,255,0
HexToRGB24⁡FF0000
255,0,0
HexToRGB24⁡F00
HexToRGB24⁡I like cat videos
Error, (in ColorTools:-HexToRGB24) invalid hex color value: I like cat videos
The ColorTools[HexToRGB24] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
See Also
ColorTools[RGB24ToHex]
Download Help Document