I restored the old way of handling diode flasher inside the stimulus class, to reduce overhead and avoid the nasty interference with itiClear that was needed before.
To make this work I created a beforeItiFrame functionality (in the baseBeforeItiFrame the diode flasher is turned on or off as needed). Not sure that any other plugin would need a beforeItiFrame, but now they can define it.
The calls to add a diodeFlasher to a stimulus is simplified to
addDiodeFlasher(stimulus)
and the old options can be set in this function call too (location, size, onColor, offColor)
Following up on issue Diode #145.
I restored the old way of handling diode flasher inside the stimulus class, to reduce overhead and avoid the nasty interference with itiClear that was needed before.
To make this work I created a beforeItiFrame functionality (in the baseBeforeItiFrame the diode flasher is turned on or off as needed). Not sure that any other plugin would need a beforeItiFrame, but now they can define it.
The calls to add a diodeFlasher to a stimulus is simplified to
addDiodeFlasher(stimulus) and the old options can be set in this function call too (location, size, onColor, offColor)
Updated tools and added demo to behaviorDemo