Dynamic lights now fade on and off, rather than just turning straight on, You can change the duration of the fade
Dynamic lights now stay on/off for between 5 and 8 seconds (randomly chosen). During that time, any toggle() events are ignored.
Set a load of macros at the top to allow easy configuration changes
Made a slight tweak to how the random chances are calculated, so that if you set the random chance to "1", it will now fire every time.
To achieve number 1, I had to change things to use HSV rather than RGB to define the colors. By eye, the new HSV color seems pretty close to Hansi's original RGB value.
Added some new features:
To achieve number 1, I had to change things to use HSV rather than RGB to define the colors. By eye, the new HSV color seems pretty close to Hansi's original RGB value.