RSS/Atom feed Twitter
Site is read-only, email is disabled

a question about hsl saturation calculation.

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

a question about hsl saturation calculation. chiyu wang 14 Jan 14:18
chiyu wang
2009-01-14 14:18:16 UTC (almost 16 years ago)

a question about hsl saturation calculation.

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