ColorTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : ColorTools/HexToRGB24

ColorTools

  

HexToRGB24

  

convert hex string to RGB value

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

HexToRGB24(hex)

Parameters

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"

Description

• 

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.

Examples

withColorTools:

HexToRGB24#00FF00

0,255,0

(1)

HexToRGB24FF0000

255,0,0

(2)

HexToRGB24F00

255,0,0

(3)

HexToRGB24I like cat videos

Error, (in ColorTools:-HexToRGB24) invalid hex color value: I like cat videos

Compatibility

• 

The ColorTools[HexToRGB24] command was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

ColorTools

ColorTools[RGB24ToHex]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam