Closed Olifant1990 closed 2 years ago
"Value" here is the the "V" part of the "HSV" color model, so changing it is also going to change the color. If you're using iro.js to control LEDs and want a separate brightness slider then you will have to implement that yourself. iro.js is a generic color picker library, not an LED driver.
Using this setup:
var colorPicker = new iro.ColorPicker('#colorPicker', { layout: [{ component: iro.ui.Slider, options: { // can also be 'saturation', 'value', 'red', 'green', 'blue', 'alpha' or 'kelvin' sliderType: 'kelvin', //sliderShape: 'circle' } }, { component: iro.ui.Slider, options: { // can also be 'saturation', 'value', 'red', 'green', 'blue', 'alpha' or 'kelvin' sliderType: 'value' } }] });
Maybe the biggest problem/cause of this is that Kelvin still uses an RGB value in background. See my other feature request for an Kelvin option that is not based on RGB. That could fix this problem too.