halostatue / color

Color tools for Ruby.
Other
133 stars 41 forks source link

Added Color::LAB and Color::XYZ classes #11

Open stiff opened 10 years ago

stiff commented 10 years ago

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]

halostatue commented 10 years ago

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.

halostatue commented 10 years ago

I am interested in this, but would prefer if you could target this to the changes being made either in color-2 directly or preferably the CIE-Lab-class branch referenced in #12.

stiff commented 10 years ago

Done. Take a look please

coveralls commented 10 years ago

Coverage Status

Coverage decreased (-2.52%) when pulling f8d375c17ee49f2209dbc65ed3b094cc150086de on stiff:master into 3a214a6e26b4ed0153310acf80a7c0c7dd06ac40 on halostatue:master.