Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable color Temperatures from 1000°K to 2000°K #5

Open
wants to merge 1 commit into
base: typescript
Choose a base branch
from

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.

None yet

1 participant