Re: Color names and the 10 elementary colors?
- To: mathgroup at smc.vnet.net
- Subject: [mg69576] Re: Color names and the 10 elementary colors?
- From: "astanoff" <astanoff at gmail.com>
- Date: Fri, 15 Sep 2006 06:48:00 -0400 (EDT)
- References: <200607010912.FAA20399@smc.vnet.net><ee649s$5tm$1@smc.vnet.net>
Murray Eisenberg wrote:
> In Mathematica 5.2, how does one find all the names of BUILT-IN colors
> -- as opposed to those given names only in Graphics`Colors`?
In[1]:=aa = Names["*"];
bb = {Hold[#], ToExpression[#]}& /@ aa;
cc = {#[[1]], ToColor[#[[2]], RGBColor]}& /@ bb;
#[[1,1]]& /@ Cases[cc, {Hold[_], RGBColor[_,_,_]}]
[error messages]
Out[4]={Black,Blue,Brown,Cyan,Gray,Green,Magenta,Orange,Pink,Purple,Red,White,Yellow}
v.a.