-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Allow kelvin in Color constructor #149
Labels
Comments
Ah, this is a silly oversight on my behalf, sorry about that. It should be relatively trivial to add support for specifying the initial color as an object like |
Sorry for taking so long to get to this! The option to pass a kelvin object as a color value will be added in the next release (v 5.5.0) Example: colorPicker.color.set({ kelvin: 6600 }); Thanks for the suggestion! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've created a color temperature picker React component that wraps iro, and my React component would be used something like this:
In my
ColorTemperaturePicker
implementation, it's just slightly inconvenient to have to convert my kelvin value back to RGB so thatiro.Color
can use it:Is there any reason the
iro.Color
constructor can't accept kelvin format as well?The text was updated successfully, but these errors were encountered: