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 class #2

Open
nasser opened this issue Feb 18, 2011 · 1 comment
Open

Color class #2

nasser opened this issue Feb 18, 2011 · 1 comment
Labels

Comments

@nasser
Copy link
Owner

nasser commented Feb 18, 2011

Colors should get a Color class that will support color arithmetic, interpolation, conversion and so on along with a use or apply method to set it as the current color.

# this
color 240, 128, 64

# would be the same as
my_red = Color.new 240, 128, 64
my_red.use

This would allow more advanced uses of colors that the present color method can't support. The color method would then act as the shorthand to the Color class.

@nasser
Copy link
Owner Author

nasser commented Oct 24, 2012

Mostly fixed in 0b584c6, Color#use is not implemented yet, though.

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

No branches or pull requests

1 participant