Class LightningAnimation¶
Defined in File lightninganimation.h
Inheritance Relationships¶
Base Type¶
public PixelMaestro::Animation(Class Animation)
Class Documentation¶
-
class
LightningAnimation: public PixelMaestro::Animation¶ Public Functions
-
~LightningAnimation()¶
-
uint8_t
get_bolt_count() const¶ Returns the number of bolts.
- Return
Bolt count.
-
uint8_t
get_fork_chance() const¶ Returns the fork chance.
- Return
Fork chance.
-
int8_t
get_drift() const¶ Returns the amount of drift.
- Return
Drift amount.
-
void
map()¶
-
void
set_bolt_count(uint8_t bolt_count)¶ Sets the number of bolts generated in each strike.
- Parameters
bolt_count: Number of bolts (0 - 255).
-
void
set_drift(int8_t drift)¶ Sets the amount of drift. Negative values increase the amount of negative drift (left or down). Positive values increase the amount of positive drift (right or up).
- Parameters
drift: Drift amount.
-
void
set_fork_chance(uint8_t fork_chance)¶ Sets the chances of a bolt forking.
- Parameters
fork_chance: Chance of a bolt forking (0 - 255).
-
void
update()¶
-