tristen / hcl-picker

:art: Colorpicker for data
https://tristen.ca/hcl-picker/
BSD 3-Clause "New" or "Revised" License
207 stars 40 forks source link

Colors don't have fixed Hue, as they're supposed to #14

Open rafaveguim opened 7 years ago

rafaveguim commented 7 years ago

Consider the following scale: http://tristen.ca/hcl-picker/#/clh/5/1.16/560003/E2A58A

If the Hue slider is fixed, I expect all colors to have the same hue value. This isn't, however, what chroma.js tells me about the colors that the picker suggests:

console.log(chroma("#560003").hcl()); 
// [32.025259877450765, 42.92174912486389, 15.411936172871435]
console.log(chroma("#AF4737").hcl()); 
// [36.77725531337734, 51.75956722662115, 44.08773663134244]
console.log(chroma("#E2A58A").hcl()); 
// [50.11947447114051, 29.803701752508704, 72.83727863959362]

All HCL color components are different. Am I missing something?