FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loop()

void loop ( )

Definition at line 29 of file Blur2d.ino.

29 {
30 static int x = random(WIDTH);
31 static int y = random(HEIGHT);
32 static CRGB c = CRGB(0, 0, 0);
35 x = random(WIDTH);
36 y = random(HEIGHT);
37 uint8_t r = random(255);
38 uint8_t g = random(255);
39 uint8_t b = random(255);
40 c = CRGB(r, g, b);
41 }
42 leds[xymap(x, y)] = c;
43 FastLED.show();
44 delay(20);
45}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define BLUR_AMOUNT
Definition Blur2d.ino:13
#define WIDTH
Definition Blur2d.ino:9
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
#define HEIGHT
Definition Blur2d.ino:10
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1359
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References blur2d(), BLUR_AMOUNT, EVERY_N_MILLISECONDS, FastLED, HEIGHT, leds, WIDTH, x, xymap, and y.

+ Here is the call graph for this function: