FastLED 3.9.15
Loading...
Searching...
No Matches
BilinearCompression.ino 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 "fl/bilinear_compression.h"
#include "src/wave.h"
#include "src/xypaths.h"
+ Include dependency graph for BilinearCompression.ino:

Go to the source code of this file.

Macros

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

Functions

void clearLeds ()
 
float getAnimationTime (uint32_t now)
 
XYPathPtr getShape (int which)
 
void loop ()
 
void setup ()
 
void setupUiCallbacks ()
 

Variables

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)