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

Color Ranges #5

Open
nasser opened this issue Feb 18, 2011 · 0 comments
Open

Color Ranges #5

nasser opened this issue Feb 18, 2011 · 0 comments

Comments

@nasser
Copy link
Owner

nasser commented Feb 18, 2011

Not sure about the syntax, but making color ranges work the way number ranges do with respect to interpolation would be awesome.

c = Color.new(:red)..Color.new(:blue) # ew, clunky syntax

color c * 0.1 # set current color to 10% red, 90% blue
color c * 0.5 # set current color to 50/50 red/blue
color c * 0.9 # set current color to 90% red, 10% blue
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

1 participant