FastLED 3.9.15
Loading...
Searching...
No Matches
FireCylinder.h File Reference
#include "FastLED.h"
#include "fl/ui.h"
#include "fl/xymap.h"
#include "fx/time.h"
+ Include dependency graph for FireCylinder.h:

Go to the source code of this file.

Macros

#define BRIGHTNESS   255
 
#define HEIGHT   100
 
#define SERPENTINE   true
 
#define WIDTH   100
 

Functions

UISlider brightness ("Brightness", 255, 0, 255, 1)
 
 DEFINE_GRADIENT_PALETTE (electricBlueFirePal)
 
 DEFINE_GRADIENT_PALETTE (electricGreenFirePal)
 
 DEFINE_GRADIENT_PALETTE (firepal)
 
UIDescription description ("This Fire demo wraps around the cylinder. It uses Perlin noise to create a fire effect.")
 
CRGBPalette16 getPalette ()
 
uint8_t getPaletteIndex (uint32_t millis32, int width, int max_width, int height, int max_height, uint32_t y_speed)
 
UISlider invSpeedZ ("Inverse SpeedZ", 20, 1, 100, 1)
 
void loop ()
 
UINumberField palette ("Palette", 0, 0, 2)
 
UISlider scaleX ("ScaleX",.3, 0.1, 3,.01)
 
UISlider scaleXY ("Scale", 8, 1, 100, 1)
 
void setup ()
 
UISlider speedY ("SpeedY", 1.3, 1, 6,.1)
 
TimeWarp timeScale (0, 1.0f)
 
UITitle title ("FireCylinder Demo")
 
XYMap xyMap (WIDTH, HEIGHT, SERPENTINE)
 

Variables

CRGB leds [HEIGHT *WIDTH]