[Gimp-developer] a question about hsl saturation calculation.
chiyu wang
chiyuwang2004 at gmail.com
Wed Jan 14 05:18:16 PST 2009
I tried to go through the source code of hsl saturation calculation.
In the file there is a function :
void
gimp_operation_hue_saturation_map (GimpHueSaturationConfig *config,
const GimpRGB *color,
GimpHueRange range,
GimpRGB *result)
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
advance.
Chiyu Wang
--
Joe E. Lewis - "There's only one thing money won't buy, and that is poverty."
More information about the Gimp-developer
mailing list