color temperature (kelvin) and value (luminosity) relationship #188
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The value slider is tied to the "V" channel in the HSV color model, and when dealing with Kelvin temperatures it goes from Kelvin -> approx. RGB -> HSV, which is why you see that slider jump around. This is also why I don't think it makes sense to detach the value slider from Kelvin either - iro.js only works with digital color, not light. While I know a lot of people use iro.js to drive LEDs, that stuff really isn't my wheelhouse, so I never really designed it for dealing with light or anything. In the future I'm considering adding a way to define your own custom slider types, but that needs a lot of work and thinking. :) As a workaround for now, you could just use two separate colorPicker instances; one with a value slider and another with a kelvin one, and control them with your own code. |
Beta Was this translation helpful? Give feedback.
The value slider is tied to the "V" channel in the HSV color model, and when dealing with Kelvin temperatures it goes from Kelvin -> approx. RGB -> HSV, which is why you see that slider jump around. This is also why I don't think it makes sense to detach the value slider from Kelvin either - iro.js only works with digital color, not light.
While I know a lot of people use iro.js to drive LEDs, that stuff really isn't my wheelhouse, so I never really designed it for dealing with light or anything. In the future I'm considering adding a way to define your own custom slider types, but that needs a lot of work and thinking. :)
As a workaround for now, you could just use two separate colorPick…