-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Added Color::LAB and Color::XYZ classes #11
base: master
Are you sure you want to change the base?
Conversation
I'd be happier if you work with @daveheitzman to figure out which bits work well together. I'm a little swamped right now, so I'm not having a lot of time to spend on the design for color 2.0, which is when these classes will be introduced. |
- Remove explicit support for Ruby 1.8 from Travis. - Remove deprecated methods and constant warnings.
…mputing contrast. Added tests for this and existing #contrast
… objects to reflect
I am interested in this, but would prefer if you could target this to the changes being made either in |
Done. Take a look please |
Sorry guys I missed the existing #8 pull request, but anyway think some bits maybe useful.
This should be backward-compatible: previously to_xyz/to_lab returned hash now its LAB and XYZ classes, but they support accessing individual components by square brackets, like hash:
rgb.to_xyz[:x]