gpick icon indicating copy to clipboard operation
gpick copied to clipboard

LCH: Hues Are Not Restored When the Chroma is Zero

Open thezbyg opened this issue 9 years ago • 1 comments

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 avatar Mar 21 '15 13:03 thezbyg

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.

thezbyg avatar Mar 21 '15 13:03 thezbyg