MathGroup Archive 2006

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

Search the Archive

Re: Color names and the 10 elementary colors?


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