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
int y
Definition Audio.ino:72
#define WIDTH
Definition Audio.ino:33
int x
Definition Audio.ino:71
#define HEIGHT
Definition Audio.ino:32
#define BLUR_AMOUNT
Definition Blur2d.ino:13
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
Definition blur.cpp:71
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1341
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55

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

+ Here is the call graph for this function: