Skip to content

Conversation

@Christian-Me
Copy link

jaames/iro.js#138

As discussed here I would like to contribute a fix for the rgb2Kelvin method in order to support color temperatures below 2.000K
I optimized first idea to optimize performance and reduce the amount of iterations needed to get the result.

To improve accuracy I modified the kelvinToRgb method to get float values.

Tested with the node-red dashboard widget as discussed here

Thank you for your great library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant