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

Add support for HWB color model #32

Closed
johansigfrids opened this issue Feb 1, 2016 · 1 comment · Fixed by #53
Closed

Add support for HWB color model #32

johansigfrids opened this issue Feb 1, 2016 · 1 comment · Fixed by #53
Milestone

Comments

@johansigfrids
Copy link

I was reading through the CSS level 4 color module to see what's coming up and came across a new color model: HWB. It was a total love at first sight. It works allowing you to select a hue and then mix in whiteness and blackness.

Support for it in this library would be great.

@Ogeon
Copy link
Owner

Ogeon commented Feb 1, 2016

Huh! Looks like it's already quite common, since it's used in the triangle color wheel, and the future inclusion in CSS makes this even more interesting. The implementation looks simple enough, so I'll schedule it for 0.2.1.

@Ogeon Ogeon added this to the 0.2.1 milestone Feb 1, 2016
@sidred sidred mentioned this issue Feb 15, 2016
@homu homu closed this as completed in #53 Feb 15, 2016
homu added a commit that referenced this issue Feb 15, 2016
Add hwb color

Added support for HWB color model.

Added tests, implemented Alpha, ApproxEq, FromColor and IntoColor traits and added to color enum.

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

Successfully merging a pull request may close this issue.

2 participants