34#define NUM_LEDS ((WIDTH) * (HEIGHT))
35#define IS_SERPINTINE true
40fl::UIDescription description(
"Shows the use of the Wave2d effect. By default the wave is cyclical on the x-axis and waves will spill over to the other side.");
116 uint32_t idx =
xyMap.mapToIndex(
x,
y);
fl::UIDescription description("Demo of the Animatrix effects. @author of fx is StefanPetrick")
fl::UITitle title("Animartrix")
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::UICheckbox autoTrigger("Auto Trigger", true)
fl::UISlider slider("Speed", 0.18f, 0.0f, 1.0f)
fl::UICheckbox halfDuplex("Half Duplex", true)
fl::WaveSimulation2D waveSim(WIDTH, HEIGHT, fl::SuperSample::SUPER_SAMPLE_4X)
fl::UISlider dampening("Dampening", 9.0f, 0.0f, 20.0f, 0.1f)
fl::UIButton button("Trigger")
fl::UISlider extraFrames("Extra Frames", 0.0f, 0.0f, 8.0f, 1.0f)
fl::UICheckbox isotropicStencil("Isotropic stencil (rounder ripples)", false)
fl::UIGroup triggerControls("Trigger Controls", button, autoTrigger, extraFrames)
fl::UISlider superSample("SuperSampleExponent", 1.f, 0.f, 3.f, 1.f)
fl::UICheckbox xCyclical("X Is Cyclical", true)
fl::SuperSample getSuperSample()
fl::UIGroup waveSimControls("Wave Simulation", slider, dampening, halfDuplex, superSample, isotropicStencil, xCyclical)
void triggerRipple(fl::WaveSimulation2D &waveSim)
fl::UICheckbox isotropicStencil("Isotropic stencil (rounder ripples)", false)
fl::UICheckbox halfDuplex("Half Duplex", false)
fl::WaveSimulation1D waveSim(NUM_LEDS, fl::SuperSample::SUPER_SAMPLE_2X)
fl::UISlider slider("Speed", 0.18f, 0.0f, 1.0f)
fl::UISlider superSample("SuperSampleExponent", 0.f, 0.f, 3.f, 1.f)
fl::UISlider extraFrames("Extra Frames", 1.0f, 0.0f, 8.0f, 1.0f)
fl::UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
fl::UIButton button("Button")
2D wave simulation effect for LED matrices
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Aggregator header for the fl/ui/ family of per-element UI types.