You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great library, I'm using this for color calculations in my home automation lighting setup. :)
Notably, I'm using Lab colorspace for tweaking the "color temperature" of my lights based on time of day (yeah, probably not the best way, but anyway). My lights expect hsv, so I'm doing the conversion between these using chromatism.
I noticed that at a particular time every evening, my lights would briefly flash bright white as the color temperature slowly adjusts towards an orange color. I started digging into this, and got this far as to have a consistent repro of the bug:
Notice how the first example gives totally crazy values, but tweaking any of the input params just slightly in any direction gives me a "sane" color again. My guess would be a division by zero occurring somewhere in chromatism. Converting to RGB (instead of HSV) works fine with these input parameters.
The text was updated successfully, but these errors were encountered:
Hi,
Great library, I'm using this for color calculations in my home automation lighting setup. :)
Notably, I'm using Lab colorspace for tweaking the "color temperature" of my lights based on time of day (yeah, probably not the best way, but anyway). My lights expect hsv, so I'm doing the conversion between these using chromatism.
I noticed that at a particular time every evening, my lights would briefly flash bright white as the color temperature slowly adjusts towards an orange color. I started digging into this, and got this far as to have a consistent repro of the bug:
Notice how the first example gives totally crazy values, but tweaking any of the input params just slightly in any direction gives me a "sane" color again. My guess would be a division by zero occurring somewhere in chromatism. Converting to RGB (instead of HSV) works fine with these input parameters.
The text was updated successfully, but these errors were encountered: