d3 / d3-color

Color spaces! RGB, HSL, Cubehelix, CIELAB, and more.
https://d3js.org/d3-color
ISC License
401 stars 91 forks source link

Should Lab and HCL colorspaces clamp luminance to [0, 100]? #2

Closed mbostock closed 9 years ago

mbostock commented 9 years ago

They currently do, but I don’t think it makes sense. It only makes sense for RGB because of machine limitations. I suppose we could force the luminance to be non-negative, but I don’t think there’s any reason to limit the maximum value to 100.