criezy/scummvm — comment on commit 691815c8c1e3d716f144e1ae80a5be65d9faee9f
File: engines/sword1/animation.cpp line 311
By criezy:

That's what I had initially but I removed it when I started playing with the weights for each component because they are different depending on the target color (I only passed the HSV values of the color and target color to the function). If the target color if almost achromatic (i.e. the first two colors which are almost white and grey respectively), the hue doesn't change drastically the color (thus a low weight on the H component). However on the two others colors (blue and rose) the hue component is much more important.
I suppose I could add the inline function back with the weights on each component as additional arguments.