MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

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.


  • Prev by Date: Re: Summing elements within a List or Array
  • Next by Date: Re: Problems eps-export Corel Draw Import
  • Previous by thread: Re: Color names and the 10 elementary colors?
  • Next by thread: Animation crash