Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make .lighter() and .darker() methods for Sage Color objects #5602

Closed
jasongrout opened this issue Mar 24, 2009 · 4 comments
Closed

make .lighter() and .darker() methods for Sage Color objects #5602

jasongrout opened this issue Mar 24, 2009 · 4 comments

Comments

@jasongrout
Copy link
Member

See the end of http://groups.google.com/group/sage-support/browse_thread/thread/44971aa416574675

For reference, here is what MMA does:

http://reference.wolfram.com/mathematica/ref/Darker.html

http://reference.wolfram.com/mathematica/ref/Lighter.html

Related tickets:

CC: @sagetrac-mvngu

Component: graphics

Issue created by migration from https://trac.sagemath.org/ticket/5602

@qed777

This comment has been minimized.

@qed777
Copy link
Mannequin

qed777 mannequin commented Nov 18, 2009

comment:3

See the patch at #5601.

@jasongrout
Copy link
Member Author

comment:4

This works now:

sage: sage.plot.colors.red.lighter()
RGB color (1.0, 0.33333333333333331, 0.33333333333333331)
sage: sage.plot.colors.red.darker()
RGB color (0.66666666666666674, 0.0, 0.0)

So this ticket should be closed.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented May 11, 2010

comment:5

Close as fixed:

[mvngu@sage ~]$ sage
----------------------------------------------------------------------
| Sage Version 4.4.1, Release Date: 2010-05-02                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: r = sage.plot.colors.red
sage: r
RGB color (1.0, 0.0, 0.0)
sage: r.darker()
RGB color (0.66666666666666674, 0.0, 0.0)
sage: r.lighter()
RGB color (1.0, 0.33333333333333331, 0.33333333333333331)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants