We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems like whenever I have a color where the saturation is 0% or the lightness is 0% or 100%, I get NaN values in the returned color object.
NaN
Easiest to see the various examples here: https://observablehq.com/d/f7636f7695376a03
But, for example: d3.hsl('#ffffff') returns {h: NaN, s: NaN, l: 1, opacity: 1}
d3.hsl('#ffffff')
{h: NaN, s: NaN, l: 1, opacity: 1}
The text was updated successfully, but these errors were encountered:
This is intended. See:
https://observablehq.com/@d3/achromatic-interpolation
Sorry, something went wrong.
Might be a good idea to add a note to the readme (unless it's already there and I missed it)?
No branches or pull requests
Seems like whenever I have a color where the saturation is 0% or the lightness is 0% or 100%, I get
NaN
values in the returned color object.Easiest to see the various examples here:
https://observablehq.com/d/f7636f7695376a03
But, for example:
d3.hsl('#ffffff')
returns{h: NaN, s: NaN, l: 1, opacity: 1}
The text was updated successfully, but these errors were encountered: