|
Kaleidoscope
|
The StalkerEffect plugin provides an interesting new typing experience: the LEDs light up as you tap keys and play one of the selected effects: a haunting trail of ghostly white lights, or a blazing trail of fire.
To use the plugin, one needs to include the header and select the effect.
It is recommended to place the activation of the plugin (the USE_PLUGINS call) as early as possible, so the plugin can catch all relevant key presses. The configuration can happen at any time and should use the STALKER macro to do so.
The plugin provides the StalkerEffect object, which has the following properties:
.variantSet the effect to use with the plugin. See below for a list.
It is recommended to use the
STALKERmacro to declare the effect itself.
.stepLengthThe length - in milliseconds - of each step of the animation. An animation lasts 256 steps.
Defaults to 50.
STALKER(effect, params)Returns an effect, to be used to assign a value the
.variantproperty of theStalkerEffectobject. Any arguments given to the macro are passed on to the effect. If the effect takes no arguments, use an emptyparamslist.
The plugin provides the following effects:
Haunt([color])A ghostly haunt effect, that trails the key taps with a ghostly white color (or any other color, if specified). Use the
CRGB(r,g,b)macro to specify the color, if you want something else than the ghostly white.
BlazingTrail()A blazing trail of fire will follow our fingers!
Starting from the example is the recommended way of getting started with the plugin.
1.8.13