thezbyg / gpick

Advanced color picker written in C++ using GTK+ toolkit
BSD 3-Clause "New" or "Revised" License
376 stars 33 forks source link

LCH: Hues Are Not Restored When the Chroma is Zero #86

Open thezbyg opened 9 years ago

thezbyg commented 9 years ago

Original issue 86 created by thezbyg on 2012-06-29T18:44:47.000Z:

If I set the Chroma of the current color to 0, change the Hue, and select another color on the hexagon, then, when I switch back to the first color, its Hue has randomly changed.

thezbyg commented 9 years ago

Comment #1 originally posted by thezbyg on 2012-07-10T06:29:20.000Z:

This issue is actually more common: HSV, HSL - hue and saturation drops to 0 when value(lightness) is set to 0, hue drops to 0 when saturation is set to 0. CMYK - cyan, magenta and yellow drops to 0 when key is set to 255.

This is due to the fact, that values are stored as RGB, and specific color space information is lost. The only solution would be to store colors in a specified color space, but this complicates lots of things.