Closed eevee closed 11 years ago
Given hsl(180, 0.5, 0.5).
hsl(180, 0.5, 0.5)
Python produces #40bfbf.
#40bfbf
Ruby produces #010101.
#010101
It seems Ruby is quietly adding the percentages, whereas Python is treating the numbers as... well, as I'd expect, actually.
Arguably Ruby is wrong here, but filing a ticket anyway to remind me to investigate.
Incidentally fixed as part of the number rewrite.
Given
hsl(180, 0.5, 0.5)
.Python produces
#40bfbf
.Ruby produces
#010101
.It seems Ruby is quietly adding the percentages, whereas Python is treating the numbers as... well, as I'd expect, actually.
Arguably Ruby is wrong here, but filing a ticket anyway to remind me to investigate.