Closed terrarum closed 2 years ago
Calling chroma.temperature() with values under 200 returns a Color object with the following:
chroma.temperature()
_rgb: (4) […] 0: 255 1: NaN 2: 0 3: 1
You can see this failing in the documentation if you set the values to 199 or lower: https://gka.github.io/chroma.js/#chroma-temperature
I can see how that's happening with a log(g) in temperature2rgb.js, and basic math dictates you just can't do that with a negative g. PR sent.
log(g)
temperature2rgb.js
Calling
chroma.temperature()
with values under 200 returns a Color object with the following:You can see this failing in the documentation if you set the values to 199 or lower: https://gka.github.io/chroma.js/#chroma-temperature