#5601: predefine colors in Sage
---------------------------+------------------------------------------------
Reporter: jason | Owner: was
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-4.3
Component: graphics | Keywords:
Work_issues: | Author: Mitesh Patel
Reviewer: | Merged:
---------------------------+------------------------------------------------
Changes (by newvalueoldvalue):
* cc: krisman (added)
* status: new => needs_review
* author: => Mitesh Patel
Comment:
The attached patch should add:
* CSS3 / SVG colors - #5601. Actually, this replaces the previous
colors.
* `Color.lighter` and `Color.darker` - #5602.
* HSV and HSL/HLS `Color` constructors - #5605.
Predefined palette:
{{{
#!python
import sage.plot.colors as cc
p = Graphics()
for i, color in enumerate(cc.colors.keys()):
x = floor(i / 12) + 1
y = i % 12 + x * 0.5 + 1
p += point((x, y), pointsize=500, faceted=True, color=color)
p += text(color, (x + 0.15, y), rgbcolor='black', fontsize=10,
horizontal_alignment='left')
show(p, figsize=[25,10], ymin=0, xmax=14, ymax=19, axes=False)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5601#comment:6>
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].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=.