Datasheet
Now let's make a particle system! I added a Ring class to manage each particle. The
individual particles have a lifespan during which they expand and fade. Particles randomly
respawn at the mouse cursor location. The mouse cursor location itself is smoothed so that
we don't see such discrete bursts of particles every time the mouse moves by a pixel.
I decided to use mouse speed and direction as inputs. Mouse speed controls the intensity
that new particles spawn with, and mouse direction controls their hue. As you move your
mouse or swipe your touchpad, the speed and angle of your gesture creates a unique
pattern of light. The expanding wavefronts from each gesture interact with each other,
forming new patterns of light and color.
© Adafruit Industries https://learn.adafruit.com/led-art-with-fadecandy Page 53 of 60










