FastLED 3.9.15
Loading...
Searching...
No Matches
Wave2d.h File Reference
#include "fl/ui.h"
#include "fx/2d/wave.h"
#include <Arduino.h>
#include <FastLED.h>
+ Include dependency graph for Wave2d.h:

Go to the source code of this file.

Macros

#define HEIGHT   100
 
#define IS_SERPINTINE   true
 
#define NUM_LEDS   ((WIDTH) * (HEIGHT))
 
#define WIDTH   100
 

Functions

UICheckbox autoTrigger ("Auto Trigger", true)
 
UIButton button ("Trigger")
 
UISlider dampening ("Dampening", 9.0f, 0.0f, 20.0f, 0.1f)
 
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.")
 
UISlider extraFrames ("Extra Frames", 0.0f, 0.0f, 8.0f, 1.0f)
 
SuperSample getSuperSample ()
 
UICheckbox halfDuplex ("Half Duplex", true)
 
void loop ()
 
void setup ()
 
UISlider slider ("Speed", 0.18f, 0.0f, 1.0f)
 
UISlider superSample ("SuperSampleExponent", 1.f, 0.f, 3.f, 1.f)
 
UITitle title ("Wave2D Demo")
 
UIGroup triggerControls ("Trigger Controls", button, autoTrigger, extraFrames)
 
void triggerRipple (WaveSimulation2D &waveSim)
 
WaveSimulation2D waveSim (WIDTH, HEIGHT, SUPER_SAMPLE_4X)
 
UIGroup waveSimControls ("Wave Simulation", slider, dampening, halfDuplex, superSample, xCyclical)
 
UICheckbox xCyclical ("X Is Cyclical", true)
 
XYMap xyMap (WIDTH, HEIGHT, IS_SERPINTINE)
 

Variables

CRGB leds [NUM_LEDS]