The problem may come from the fact that the min/max values for HSL sliders (sorry I said HSV, inkscape uses the slightly different HSL color space), together with their mapping to real (H,S,L) values are simply _wrong_, and maybe the conversion RGB/HSL functions too.
HSL components are NOT addititive components on the same scale like RGB components are. Instead, HSL components are:
H is a real number in degrees and should be in [0,360] (360 = 0)
S is a real number in [0,1]
L is a real number in [0,1] (Same thing for V in HSV color space BTW)
What applications (e.g gimp) use the following values in their color selection tool:
H: integer in [0,360]
S: integer in [0,100] (% Saturation)
L: integer in [0,100] (% Lightness)
Inkscape uses [0,255] for all of them, which is valid ONLY if they map discrete values to real values as follows:
H: [0,255] -> [0,360]
S: [0,255] -> [0,1]
L: [0,255] -> [0,1]
I suspect that inkscape has this all screwed up, as min/max values of [0,255] for HSL is _very_ uncommon and absolutely unintuitive.
I am not familiar with inkscape code. Could you check that the min/max values and conversion functions are correctly implemented in inkscape ?
The problem may come from the fact that the min/max values for HSL sliders (sorry I said HSV, inkscape uses the slightly different HSL color space), together with their mapping to real (H,S,L) values are simply _wrong_, and maybe the conversion RGB/HSL functions too.
HSL components are NOT addititive components on the same scale like RGB components are. Instead, HSL components are:
H is a real number in degrees and should be in [0,360] (360 = 0)
S is a real number in [0,1]
L is a real number in [0,1] (Same thing for V in HSV color space BTW)
What applications (e.g gimp) use the following values in their color selection tool:
H: integer in [0,360]
S: integer in [0,100] (% Saturation)
L: integer in [0,100] (% Lightness)
Inkscape uses [0,255] for all of them, which is valid ONLY if they map discrete values to real values as follows:
H: [0,255] -> [0,360]
S: [0,255] -> [0,1]
L: [0,255] -> [0,1]
I suspect that inkscape has this all screwed up, as min/max values of [0,255] for HSL is _very_ uncommon and absolutely unintuitive.
I am not familiar with inkscape code. Could you check that the min/max values and conversion functions are correctly implemented in inkscape ?
Conversions functions are explained here: en.wikipedia. org/wiki/ HSL_color_ space
http://
Cheers.