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

[plugin.is.color] create color expectation helper #24

Open
rodneyrehm opened this issue Apr 25, 2015 · 2 comments
Open

[plugin.is.color] create color expectation helper #24

rodneyrehm opened this issue Apr 25, 2015 · 2 comments

Comments

@rodneyrehm
Copy link
Contributor

Comparing colors can be quite difficult. The annoying, yet not difficult part is not dealing with different notations rgb(123,123,123) === #7B7B7B. The difficult part is allowing fuzzy comparison: #7B0 === #7B1


see dalekjs/dalek#126 and dalekjs/dalek#50

@rodneyrehm rodneyrehm added this to the 0.1.0 - Beta One milestone Apr 25, 2015
@Munter
Copy link

Munter commented Apr 30, 2015

I solved this problem in https://github.com/One-com/one-color#comparing-color-objects

It also gives you a nicer highlevel interface where you can eat any color format out of the box without having to manually detect color spaces and deal with conversions. Color spaces are figured out automatically and conversions for comparisons are implicit

@rodneyrehm
Copy link
Contributor Author

nice! now we need to figure out how to wrap that in an expectation and we have our first plugin package :)

@rodneyrehm rodneyrehm self-assigned this Apr 30, 2015
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