google-code-export / gpick

Automatically exported from code.google.com/p/gpick
2 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by nihilh...@gmail.com on 29 Jun 2012 at 6:44

GoogleCodeExporter commented 9 years ago
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.

Original comment by thezbyg on 10 Jul 2012 at 6:29