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

Go to the source code of this file.

Macros

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

Functions

 DEFINE_GRADIENT_PALETTE (electricBlueFirePal)
 
 DEFINE_GRADIENT_PALETTE (electricGreenFirePal)
 
 DEFINE_GRADIENT_PALETTE (firepal)
 
CRGBPalette16 getPalette ()
 
uint8_t getPaletteIndex (uint32_t millis32, int width, int max_width, int height, int max_height, uint32_t y_speed)
 
void loop ()
 
void setup ()
 

Variables

UISlider brightness ("Brightness", 255, 0, 255, 1)
 
UIDescription description ("This Fire demo wraps around the cylinder. It uses Perlin noise to create a fire effect.")
 
UISlider invSpeedZ ("Inverse SpeedZ", 20, 1, 100, 1)
 
CRGB leds [HEIGHT *WIDTH]
 
UINumberField palette ("Palette", 0, 0, 2)
 
UISlider scaleX ("ScaleX",.3, 0.1, 3,.01)
 
UISlider scaleXY ("Scale", 8, 1, 100, 1)
 
UISlider speedY ("SpeedY", 1.3, 1, 6,.1)
 
TimeScale timeScale (0, 1.0f)
 
UITitle title ("FireCylinder Demo")
 
XYMap xyMap (HEIGHT, WIDTH, SERPENTINE)