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

◆ loop()

void loop ( )

Definition at line 49 of file Blur2d.ino.

49 {
50 static int x = random(WIDTH);
51 static int y = random(HEIGHT);
52 static CRGB c = CRGB(0, 0, 0);
55 x = random(WIDTH);
56 y = random(HEIGHT);
57 uint8_t r = random(255);
58 uint8_t g = random(255);
59 uint8_t b = random(255);
60 c = CRGB(r, g, b);
61 }
62 leds[xymap(x, y)] = c;
63 FastLED.show();
64 delay(20);
65}
CRGB leds[NUM_LEDS]
int y
Definition simple.h:93
int x
Definition simple.h:92
#define BLUR_AMOUNT
Definition Blur2d.ino:32
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
#define WIDTH
Definition advanced.h:36
#define HEIGHT
Definition advanced.h:37
void blur2d(CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
Definition blur.cpp:72
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Definition lib8tion.h:1221
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86

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

+ Here is the call graph for this function: