After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 141922 - gradient coloring types HSV_CCW and HSV_CW are reversed
gradient coloring types HSV_CCW and HSV_CW are reversed
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other All
: High normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2004-05-05 15:45 UTC by david gowers
Modified: 2006-05-07 20:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description david gowers 2004-05-05 15:45:10 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.
Comment 1 Sven Neumann 2004-09-13 23:38:59 UTC
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.
Comment 2 Nathan Summers 2004-09-13 23:52:38 UTC
We just need to document that our clocks run backwards.  ;)
Comment 3 Joao S. O. Bueno 2004-09-14 06:59:25 UTC
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." 
Comment 4 Sven Neumann 2004-09-14 09:54:55 UTC
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.
Comment 5 Nathan Summers 2004-09-14 18:27:29 UTC
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.
Comment 6 Joao S. O. Bueno 2004-09-14 19:59:30 UTC
Indeed not the same. This bug is documented in comments #4 and #5 in bug 
141927, though. 
Comment 7 Michael Natterer 2006-05-06 23:28:26 UTC
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.
Comment 8 Simon Budig 2006-05-07 20:50:08 UTC
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