#5605: Construct Color objects using hsl and hsv values
---------------------------+------------------------------------------------
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):
On the RGB converters:
{{{
#!python
sage: from sage.plot.colors import rgbcolor, to_mpl_color
sage: rgbcolor('#ffffff')
(0.99609375, 0.99609375, 0.99609375)
sage: to_mpl_color('#ffffff')
(1.0, 1.0, 1.0)
}}}
Both
{{{
Color(rgbcolor(hx)).html_color() == hx
Color(to_mpl_color(hx)).html_color() == hx
}}}
are `True` for all hex colors `hx`, but we should fix `rgbcolor` and/or
unify it with `to_mpl_color`. I'll do this as part of #5601's patch,
which may also cover #5602 and, perhaps, this ticket.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5605#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
-~----------~----~----~----~------~----~------~--~---