File Applications/SpinW/m_files/sw_colorname.m
generates RGB code from color name string
RGB = SW_COLORNAME(cName)
Input:
cName String that contains the name of the color, either a single
character (see ColorSpec) or use any HTML color name,
(see http://www.w3schools.com/html/html_colornames.asp).
For multiple colors, use a cell containing the strings. The
name of the colors are stored in the color.dat file.
Output:
RGB RGB color code, dimensions are [3 1] for a single color, where
every element is between 0 and 255.
Example:
RGB = SW_COLORNAME('LightGray')
the output RGB will be [211; 211; 211].