#5601: predefine colors in Sage
---------------------------+------------------------------------------------
   Reporter:  jason        |       Owner:  was     
       Type:  enhancement  |      Status:  new     
   Priority:  minor        |   Milestone:  sage-4.3
  Component:  graphics     |    Keywords:          
Work_issues:               |      Author:          
   Reviewer:               |      Merged:          
---------------------------+------------------------------------------------

Comment(by mpatel):

 Possibilities:

  * CSS3 / SVG colors [http://www.w3.org/TR/css3-color/#svg-color
 alphabetically] or
 [http://en.wikipedia.org/wiki/Web_colors#X11_color_names by hue] - About
 110.
  * [http://en.wikipedia.org/wiki/X11_color_names X11 colors] - About 500.
  * [http://en.wikipedia.org/wiki/List_of_colors Wikipedia's list].

 We can make these available as in the comment above.  In effect:
 {{{
 sage.plot.colors.colors['aliceblue'] = (240.0/255.0, 248.0/255.0,
 255.0/255.0)
 sage.plot.colors.aliceblue = Color(sage.plot.colors.colors['aliceblue'])
 }}}

 Should we define just the official CSS3 / SVG colors?  The X11 colors
 include four shades for about 75 colors (e.g., `goldenrod1`, `goldenrod2`,
 `goldenrod3`, and `goldenrod4`), as well as 100 shades of `gray`/`grey`
 (from black to white).  They may be convenient.  Or we could suggest using
 `.lighter()` and `.darker()` (cf. #5602).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5601#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to