Closed zhuzhuaicoding closed 4 years ago
var c = d3.hsl("#fafafa"); console.log(c) // {h: NaN,l: 0.9803921568627451,opacity: 1, s: 0}
h maybe 0
But grays are devoid of hue. Why is this required?
This is the expected and documented behavior for achromatic colors.
https://observablehq.com/@d3/achromatic-interpolation
h maybe 0