so I will do something similar to HSL, but alot cheaper in computations :-) ty for recommendation to go manual route
Try using something like this HSL colour class(from the sfml github wiki) (https://github.com/SFML/SFML/wiki/Source%3A-HSL-Color)
getColour() from the sprite, convert it into a HSL colour object, modify the hue, and then convert it back.
The github code comes with functions to convert back and forth between HSL colour objects and sfml colour objects.
I set it to a very low number (0.0001 or something). Maybe that was the reason?
It depends on what you want to do with the image and the image itself. For example there are cases where shifting the hue does nothing or nearly nothing (gray and near gray colors) as they have little to no saturation. In a colorful image it actually has a purpose to shift the hue for color purposes. In the case you want to colorize an image a set in stone saturation helps get more consistent results.
Most of my tests when I first programmed it were with color codes and plain colored images,and since they turned fine after extensive debugging I just uploaded the class and forgot about it. I'm gonna make a more extensive testing of the algorithm with more complex images and see if I get odd results.