FastLED 3.9.15
Loading...
Searching...
No Matches
complex.h File Reference
#include <Arduino.h>
#include <FastLED.h>
#include "fl/gfx/draw_visitor.h"
#include "fl/math/math.h"
#include "fl/gfx/raster.h"
#include "fl/math/time_alpha.h"
#include "fl/ui/ui.h"
#include "fl/gfx/xypath.h"
#include "fl/fx/time.h"
#include "src/wave.h"
#include "src/xypaths.h"
#include "fl/stl/cstring.h"
+ Include dependency graph for complex.h:

Go to the source code of this file.

Macros

#define HEIGHT   64
 
#define IS_SERPINTINE   true
 
#define NUM_LEDS   ((WIDTH) * (HEIGHT))
 
#define TIME_ANIMATION   1000
 
#define WIDTH   64
 

Functions

void clearLeds ()
 
fl::UIDescription description ("Use a path on the WaveFx")
 
float getAnimationTime (uint32_t now)
 
fl::XYPathPtr getShape (int which)
 
fl::UICheckbox isotropicStencil ("Isotropic stencil (rounder ripples)", false)
 
void loop ()
 
fl::UISlider maxAnimation ("Max Animation", 1.0f, 5.0f, 20.0f, 1.f)
 
fl::UISlider numberOfSteps ("Number of Steps", 32.0f, 1.0f, 100.0f, 1.0f)
 
fl::XYRaster raster (WIDTH, HEIGHT)
 
fl::UISlider scale ("Scale", 1.0f, 0.0f, 1.0f, 0.01f)
 
void setup ()
 
void setupUiCallbacks ()
 
fl::TimeClampedTransition shapeProgress (TIME_ANIMATION)
 
fl::UISlider speed ("Speed", 1.0f, -20.0f, 20.0f, 0.01f)
 
fl::UITitle title ("XYPath Demo")
 
fl::UISlider transition ("Transition", 0.0f, 0.0f, 1.0f, 0.01f)
 
fl::UIButton trigger ("Trigger")
 
fl::UICheckbox useWaveFx ("Use WaveFX", true)
 
fl::UISlider whichShape ("Which Shape", 0.0f, 0.0f, shapes.size() - 1, 1.0f)
 
fl::XYMap xyMap (WIDTH, HEIGHT, IS_SERPINTINE)
 

Variables

fl::CRGB leds [NUM_LEDS]
 
fl::vector< fl::XYPathPtr > shapes = CreateXYPaths(WIDTH, HEIGHT)
 
fl::TimeWarp time_warp
 
fl::WaveEffect wave_fx