I tried to go through the source code of hsl saturation calculation.
In the file there is a function :
gimp_operation_hue_saturation_map (GimpHueSaturationConfig *config,
const GimpRGB *color,
it has three step to change saturation.
1.convert RGB into HSL
2. HSL mapping
3. HSL into RGB
My question is how does map_saturation() function work, I tried to
look into the code and it turn out too complicated for me to
understand. Is there any one can explain it to me. Thank you in
Joe E. Lewis - "There's only one thing money won't buy, and that is poverty."
Gimp-developer mailing list