FastLED 3.9.15
Loading...
Searching...
No Matches
Downscale.h File Reference
#include <Arduino.h>
#include <FastLED.h>
#include "fl/downscale.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 Downscale.h:

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 ()
 
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, false)
 
XYMap xyMap_Dst (WIDTH/2, HEIGHT/2, false)
 

Variables

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