NameToRGB24 - Maple Help

ColorTools

 NameToRGB24
 convert color name to RGB values

 Calling Sequence NameToRGB24(nm)

Parameters

 nm - string; color name

Description

 • The NameToRGB24 command converts from a color name to 24-bit RGB values. If the input name does not correspond to a known color, an error occurs.

Examples

 > $\mathrm{with}\left(\mathrm{ColorTools}\right):$
 > $\mathrm{NameToRGB24}\left("Coral"\right)$
 $\left[{255}{,}{127}{,}{80}\right]$ (1)
 > $\mathrm{NameToRGB24}\left("Niagara 1"\right)$
 $\left[{120}{,}{0}{,}{14}\right]$ (2)
 > $\mathrm{NameToRGB24}\left("CSS Orange"\right)$
 $\left[{255}{,}{166}{,}{0}\right]$ (3)

Compatibility

 • The ColorTools[NameToRGB24] command was introduced in Maple 16.