GNOME Bugzilla – Bug 141922
gradient coloring types HSV_CCW and HSV_CW are reversed
Last modified: 2006-05-07 20:50:08 UTC
clearly evident eg in fg to bg (HSV xxx hue) gradients: for example,set fg to HSV 0,100,0 and bg to HSV 30,100,0: if the hsv clockwise gradient were accurate to its name, there would be a straightforward blend red->orange, instead of cycling the colors of the rainbow. i came across this while hacking to make HSV gradients easier to use. hopefully i'll have a patch soon, its probably just a search->replace needed.
Looking at the triangle color selector it seems that you have a point. Unfortunately I don't think that we can fix this error now that is has been gone undetected for so long.
We just need to document that our clocks run backwards. ;)
Hmm...is not this a duplicate of BUG 141927. Wait...it is the same problem, reported by the same person, at almost the same time, with a different name. (It is shortest and longest path there against CW and CCW here). It is 4 a.m. here and I can't exactly tell CW from CCW right now (ok, I can, and it is indeed wrong)...but there is a patch in 141927. If it is wrong, it needs fixing, or on my next lecture on the GIMP I will quote "and here are the reverse working gradients. Some developers said that since no one have complained for a long time, CW was as good as CCW, and so mote it be."
Joao, you shouldn't comment on bug reports at 4am in the morning. Take a closer look at bug #141927. It is obviously not the same problem.
Well, really we should fix it in the next non-backwards-compatible release. There doesn't seem to be any way to enable REMINDLATER in the gnome-flavored bugzilla, but that seems to be the perfect resolution here.
Indeed not the same. This bug is documented in comments #4 and #5 in bug 141927, though.
Um, actually there is nothing wrong with the gradient code, it's the triangle color selector that is wrong. It's degrees go around clockwise instead of anti-clockwise, which would be the mathematically correct direction. All other hsv color selectors i checked have it this way, so GIMP's should do the same IMHO.
I agree, the triangle selector is wrong, the gradient code is correct. Fixed in CVS: 2006-05-07 Simon Budig <simon@gimp.org> * modules/colorsel_triangle.c: Make the hue angle behave mathematically correct. Fixes bug #141922