#11383: Color('red') == Color('red') returns False
------------------------+---------------------------------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.7.1
Component: graphics | Keywords: beginner, sd31
Work_issues: | Upstream: N/A
Reviewer: | Author: Ryan Grout
Merged: | Dependencies:
------------------------+---------------------------------------------------
Changes (by kini):
* status: needs_review => needs_work
Comment:
><rgrout> when comparing colors, do we compare the floating point tuple or
should we scale by 255 and round and then compare?
><rgrout> so I guess I'm asking how picky do we want a comparison to be?
Should it be more of a perceptive comparison or more of a numerically
exact comparison?
><kini> perceptual similarity is not transitive
><kini> though rounding to the closest 1/256 is not exactly a perceptual
comparison
I agree with slabbe. The patch gives me doctest errors. Please fix them!
(Specifically 'green' is not (0,1,0).)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11383#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].
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.