Home > Applications > SpinW > m_files > sw_colorname.m

iFit/sw_colorname

PURPOSE ^

generates RGB code from color name string

SYNOPSIS ^

function [RGB, nameOut] = sw_colorname(cName, invert)

DESCRIPTION ^

 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 <a href="matlab: doc ColorSpec">ColorSpec</a>) 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 <a href="matlab: edit color.dat">color.dat</a> 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].

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1