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

◆ HorizontalStream()

void HorizontalStream ( byte scale)

Definition at line 460 of file funky.cpp.

460 {
461 for (int x = 1; x < WIDTH; x++) {
462 for (int y = 0; y < HEIGHT; y++) {
463 leds[XY(x, y)] += leds[XY(x - 1, y)];
464 leds[XY(x, y)].nscale8(scale);
465 }
466 }
467 for (int y = 0; y < HEIGHT; y++)
468 leds[XY(0, y)].nscale8(scale);
469}
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
UISlider scale("Scale", 1.0f, 0.0f, 1.0f, 0.01f)
int XY(int x, int y)
Definition funky.cpp:190

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

Referenced by Audio2(), Dots1(), Dots2(), and Mandala8().

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