FastLED 3.9.15
Loading...
Searching...
No Matches

◆ Particles1d()

fl::Particles1d::Particles1d ( u16 num_leds,
u8 max_particles = 10,
u8 fade_rate = 2 )
Parameters
num_ledsNumber of LEDs in the strip
max_particlesMaximum number of simultaneous particles (default: 10)
fade_rateFade amount per frame for trails (0-255, default: 2)

Definition at line 8 of file particles.cpp.hpp.

9 : Fx1d(num_leds),
10 mFadeRate(fade_rate),
12 mSpeedMultiplier(1.0f),
13 mCyclical(true),
14 mParticles(max_particles) {
15}
Fx1d(u16 numLeds)
Definition fx1d.h:12
fl::vector< Particle > mParticles
Particle pool (oldest particle reused when full)
Definition particles.h:137
u8 mFadeRate
Fade amount per frame (0-255, higher = shorter trails)
Definition particles.h:132
u8 mOverdrawCount
Number of update/draw cycles per frame (higher = smoother trails, more CPU)
Definition particles.h:134
float mSpeedMultiplier
Global speed multiplier (1.0 = normal, >1.0 = faster, <1.0 = slower)
Definition particles.h:135
bool mCyclical
Wrap mode: true = wrap around, false = stop at edges.
Definition particles.h:136

References fl::Fx1d::Fx1d(), mCyclical, mFadeRate, mOverdrawCount, mParticles, and mSpeedMultiplier.

Referenced by draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: