M-File Help: colorname View code for colorname

colorname

Map between color names and RGB values

rgb = colorname(name) is the rgb-tristimulus value corresponding to the color specified by the string name.

name = colorname(rgb) is a string giving the name of the color that is closest (Euclidean) to the given rgb-tristimulus value.

XYZ = colorname(name, 'xy') is the XYZ-tristimulus value corresponding to the color specified by the string name.

name = colorname(XYZ, 'xy') is a string giving the name of the color that is closest (Euclidean) to the given XYZ-tristimulus value.

Notes


 

© 1990-2012 Peter Corke.