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

HWB (and HSL) with undefined Hue #23

Closed
svgeesus opened this issue May 12, 2020 · 1 comment
Closed

HWB (and HSL) with undefined Hue #23

svgeesus opened this issue May 12, 2020 · 1 comment

Comments

@svgeesus
Copy link
Member

In the original Alvey Ray Smith paper defining HWB is the comment

H is returned UNDEFINED if W == 1 – B

Achromatic colors currently return odd hue angles; black has hue 0 (a red) while white has hue 137.281(a cyanish green).

@LeaVerou
Copy link
Member

LeaVerou commented May 18, 2020

This generally applies to achromatic colors in every polar color space/model. I think we should bite the bullet and use NaN which would also interpolate nicely. It seems that both chroma.js and d3-color do that.

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

No branches or pull requests

2 participants