You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use iro.js to control my lights.
At night I want the lowest brightness available for the color.
At step 0, the light goes out and I always try to touch step 1 to reach it.
Maybe a flag would be nice to change the behavior on step 0.
Off, or the lowest possible brightness.
The text was updated successfully, but these errors were encountered:
You'd like to limit the color's brightness so that it never reaches 0?
The easiest way to do this is by using the color picker's color:change event to update the color if the brightness falls below 1:
colorPicker.on("color:change",function(color){varhsv=color.hsv;// don't allow the color's brightness to be smaller than 1if(hsv.v<1){color.hsv={h: hsv.h,s: hsv.s,v:1}}}
I'd prefer not to add a built-in option/flag for this, since the use-case is quite niche and it would only add more bloat and potential for bugs.
I use iro.js to control my lights.
At night I want the lowest brightness available for the color.
At step 0, the light goes out and I always try to touch step 1 to reach it.
Maybe a flag would be nice to change the behavior on step 0.
Off, or the lowest possible brightness.
The text was updated successfully, but these errors were encountered: