[r, g, b] color from a Kelvin temperature between 1,500 and 40,000.
Details and original implementation by Tanner Helland, see here.
var kelvinToRgb =var K = 1600// get [ r, g, b ] colorvar rgb =
npm install kelvin-to-rgb --save
rgb = kelvinToRGB(kelvin, [out])
Approximates the color temperature for the given
kelvin value (should be between 1500 - 40000). Returns a new array,
[r, g, b] with bytes in 0 - 255 range.
out is specified and it is an array, it will be used instead of creating a new array (this is useful to avoid GC thrashing).
MIT, see LICENSE.md for details.