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

◆ Caleidoscope3()

void Caleidoscope3 ( )

Definition at line 361 of file funky.cpp.

361 {
362 for (int x = 0; x < WIDTH / 2; x++) {
363 for (int y = 0; y < HEIGHT / 2; y++) {
364 leds[XY(WIDTH - 1 - x, y)] += leds[XY(y, x)]; // rotate to A
365 leds[XY(WIDTH - 1 - x, HEIGHT - 1 - y)] +=
366 leds[XY(x, y)]; // rotate to B
367 leds[XY(x, HEIGHT - 1 - y)] += leds[XY(y, x)]; // rotate to C
368 }
369 }
370}
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.

+ Here is the call graph for this function: