|
FastLED 3.9.15
|
Directory dependency graph for 1d:Files | |
| cylon.h | |
| demoreel100.h | |
| fire2012.h | |
| noisewave.h | |
| pacifica.h | |
| pride2015.h | |
| twinklefox.h | |
This folder contains one-dimensional (strip) visual effects. All effects derive from fl::Fx1d and render into a linear CRGB* leds buffer using a common DrawContext.
If you’re new to FastLED and C++: think of an effect as a small object you construct once and then call draw(...) every frame with the current time and your LED buffer.
cylon.h): A single dot sweeps back and forth (Larson scanner). Tunable fade_amount, delay_ms.demoreel100.h): Classic demo with rotating patterns (rainbow, glitter, confetti, sinelon, bpm, juggle). Auto-advances every ~10 seconds.fire2012.h): Procedural fire simulation with parameters cooling and sparking, optional reverse direction and palette.noisewave.h): Smooth noise-driven red/blue waves across the strip.pacifica.h): Gentle blue-green ocean waves layered for depth.pride2015.h): Ever-changing rainbow animation.twinklefox.h): Twinkling holiday-style lights using palettes; compile-time knobs for speed/density and incandescent-style cooling.fl::Cylon fx(num_leds);).fx.draw(fl::Fx::DrawContext(now, leds));.Fire2012(num_leds, cooling, sparking)), or have internal timing based on now from DrawContext.nullptr and zero length, but you should pass a valid CRGB* and correct num_leds to see output.CRGBPalette16 to customize colors.CHSV, beatsin*, nblend, palettes, and random noise.fl::Fx1d: Base class for 1D effects.fl::Fx::DrawContext: Carries now (time in ms), CRGB* leds, and optional per-frame hints.CRGB / CHSV: FastLED’s color types.Explore the headers to see per-effect parameters and internal logic; everything here is self-contained and ready to drop into your render loop.
examples/FxCylon/FxCylon.ino): examples/FxDemoReel100/FxDemoReel100.ino): examples/FxFire2012/FxFire2012.ino): examples/FxPacifica/FxPacifica.ino): examples/FxPride2015/FxPride2015.ino): examples/FxTwinkleFox/FxTwinkleFox.ino):