Comment 7 for bug 750503

Revision history for this message
Charlie (charlie-hahs) wrote : Re: [Bug 750503] Re: HSL color adjusting bars do not match RGB

I suppose after I think about it, it would make more sense to me for hue
to be in terms of degrees - I imagine there is a standard or a lot of
standards. Maybe there is an svg standard that for some reason requires
having the values in what seems to me to be odd. Probably if it were up
to me, I would make the Hue go from zero to 360

Sorry - there's a small detail wrong in my previous example (math isn't my
strongest side either ;) - Inkscape's HSL ranging from 0-255 can have 256
distinct values):
R 30 -> Hue 200° -> 200 / 360 * 256 = 142.22 (-> 142)
G 50 -> Saturation 33% -> 33 / 100 * 256 = 84.48 (-> 85)
B 60 -> Lightness 18% -> 18 / 100 * 256 = 46.08 (-> 45)