FastLED 3.9.15
Loading...
Searching...
No Matches
complex.h File Reference
#include <Arduino.h>
#include <FastLED.h>
#include "fl/draw_visitor.h"
#include "fl/math_macros.h"
#include "fl/raster.h"
#include "fl/time_alpha.h"
#include "fl/ui.h"
#include "fl/xypath.h"
#include "fx/time.h"
#include "src/wave.h"
#include "src/xypaths.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 ()
 
UIDescription description ("Use a path on the WaveFx")
 
float getAnimationTime (uint32_t now)
 
XYPathPtr getShape (int which)
 
void loop ()
 
UISlider maxAnimation ("Max Animation", 1.0f, 5.0f, 20.0f, 1.f)
 
UISlider numberOfSteps ("Number of Steps", 32.0f, 1.0f, 100.0f, 1.0f)
 
XYRaster raster (WIDTH, HEIGHT)
 
UISlider scale ("Scale", 1.0f, 0.0f, 1.0f, 0.01f)
 
void setup ()
 
void setupUiCallbacks ()
 
TimeClampedTransition shapeProgress (TIME_ANIMATION)
 
UISlider speed ("Speed", 1.0f, -20.0f, 20.0f, 0.01f)
 
UITitle title ("XYPath Demo")
 
UISlider transition ("Transition", 0.0f, 0.0f, 1.0f, 0.01f)
 
UIButton trigger ("Trigger")
 
UICheckbox useWaveFx ("Use WaveFX", true)
 
UISlider whichShape ("Which Shape", 0.0f, 0.0f, shapes.size() - 1, 1.0f)
 
XYMap xyMap (WIDTH, HEIGHT, IS_SERPINTINE)
 

Variables

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