Christian-Me / node-red-contrib-ui-iro-color-picker

Node-RED dashboard color picker widget utilizing the iro.js library. Can be configured as a widget or modal popup window. Individual components can be combined,
Apache License 2.0
4 stars 3 forks source link

Gradient adjustment for color temperature slider #14

Open megadzuliano opened 1 year ago

megadzuliano commented 1 year ago

Hi! Great job on implementing iro.js into NodeRed.

One question, it is possible to adjust the gradient for a color temperature slider, as the range the light normally is adjust to is 2700 - 6500K. We are using a wide spectrum between 1000..40000. Slider goes from orange to blue.

If we set the values to Min.2700 Max.6500 - the slider background gradient goes from orange to light orange/white. image

When in reality LEDs working on 6500K emitting light blue color. More precise representation of real color is when I set the Max. value to 10000K. image Obviously I can use a calculation to have background of 2700-10000 and output value of 2700-6500. But the question is if there an option to adjust the background color gradient of the slider?