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

◆ Caleidoscope4()

void Caleidoscope4 ( )

Definition at line 373 of file funky.cpp.

373 {
374 for (int x = 0; x < WIDTH; x++) {
375 for (int y = 0; y < HEIGHT; y++) {
376 leds[XY(WIDTH - 1 - x, y)] += leds[XY(y, x)]; // rotate to A
377 leds[XY(WIDTH - 1 - x, HEIGHT - 1 - y)] +=
378 leds[XY(x, y)]; // rotate to B
379 leds[XY(x, HEIGHT - 1 - y)] += leds[XY(y, x)]; // rotate to C
380 }
381 }
382}
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
int XY(int x, int y)
Definition funky.cpp:190

References HEIGHT, leds, WIDTH, x, XY(), and y.

Referenced by Audio1(), Audio4(), and Audio5().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: