[issue29629] rgb_to_hls in colorsys.py

2017-02-23 Thread Madhavendra Sharma
Changes by Madhavendra Sharma : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue29629] rgb_to_hls in colorsys.py

2017-02-23 Thread Madhavendra Sharma
Madhavendra Sharma added the comment: OK, That's fine. Thanks for the clarification. But most of the calculations I found for the conversion from RGB to HLS contains H = 60 * h' that's why I could not interpret it properly. Even on the same wiki page calculations specific to RGB to HLS were t

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 0.8334 * 360 is equivalent to 300. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Madhavendra Sharma
Madhavendra Sharma added the comment: Please check examples in en.wikipedia.org/wiki/HSL_and_HSV I picked one of them for R = .750, B=0.250, G=0.750 corresponding HLS value are H= 300 = (5.0 * 60) , L = .5, S=.5 but colorsys.rgb_to_hls(0.75 , 0.25, 0.75) gives following output (0.83

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All coordinates in RGB and HSV spaces are floating point numbers between 0.0 and 1.0. In Wikipedia article h is a degree value between 0° and 360°. Could you provide an example of rgb_to_hls() returning invalid result? -- nosy: +serhiy.storchaka ___

[issue29629] rgb_to_hls in colorsys.py

2017-02-22 Thread Madhavendra Sharma
Changes by Madhavendra Sharma : -- title: rgb_to_hls to colorsys.py -> rgb_to_hls in colorsys.py ___ Python tracker ___ ___ Python-bug