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

◆ Caleidoscope2()

void Caleidoscope2 ( )

Definition at line 349 of file funky.cpp.

349 {
350 for (int x = 0; x < WIDTH / 2; x++) {
351 for (int y = 0; y < HEIGHT / 2; y++) {
352 leds[XY(WIDTH - 1 - x, y)] = leds[XY(y, x)]; // rotate to A
353 leds[XY(WIDTH - 1 - x, HEIGHT - 1 - y)] =
354 leds[XY(x, y)]; // rotate to B
355 leds[XY(x, HEIGHT - 1 - y)] = leds[XY(y, x)]; // rotate to C
356 }
357 }
358}
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 Audio3(), CaleidoTest1(), Mandala8(), MSGEQtest4(), MSGEQtest8(), SlowMandala2(), and SlowMandala3().

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