Closed LBdN closed 7 years ago
Thanks for your interest in gitchangelog
. The exact issue is in:
rgb2hsl((0.9999999999999999, 1.0, 0.9999999999999994))
which produces saturation greater than 1.
The problem arise because the difference between the amount of green, red, blue is less that FLOAT_ERROR
, and will then make a near division by nearly zero : expanding tremendously in one go the float approximation errors. I corrected the bug... it'll effectively consider (in your case) the triple to be full white.
For your interest, this is released and thus corrected, in v 0.1.4 and above.
For your interest, this is released and thus corrected, in v 0.1.4 and above.
r, g, b = (0.9999999999999999, 0.9999999999999999, 1.0) c = Color(red=r, green=g, blue=b) print or log c
traceback :