#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 "fl/bilinear_compression.h"
#include "src/wave.h"
#include "src/xypaths.h"
Go to the source code of this file.
|
UIDescription | description ("Use a path on the WaveFx") |
|
CRGB | leds [NUM_LEDS] |
|
CRGB | leds_downscaled [NUM_LEDS/4] |
|
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) |
|
TimeClampedTransition | shapeProgress (TIME_ANIMATION) |
|
fl::vector< XYPathPtr > | shapes = CreateXYPaths(WIDTH, HEIGHT) |
|
UISlider | speed ("Speed", 1.0f, -20.0f, 20.0f, 0.01f) |
|
TimeWarp | time_warp |
|
UITitle | title ("XYPath Demo") |
|
UISlider | transition ("Transition", 0.0f, 0.0f, 1.0f, 0.01f) |
|
UIButton | trigger ("Trigger") |
|
UICheckbox | useWaveFx ("Use WaveFX", true) |
|
WaveEffect | wave_fx |
|
UISlider | whichShape ("Which Shape", 0.0f, 0.0f, shapes.size() - 1, 1.0f) |
|
XYMap | xyMap (WIDTH, HEIGHT, false) |
|
XYMap | xyMap_Dst (WIDTH/2, HEIGHT/2, false) |
|