Definition at line 370 of file advanced.h.
370 {
371
374 int currentIndex =
xyMap(
x,
y);
375 int aboveIndex =
xyMap(
x,
y - 1);
376 if (currentIndex >= 0 && currentIndex <
NUM_LEDS &&
377 aboveIndex >= 0 && aboveIndex <
NUM_LEDS) {
378 leds[currentIndex] =
leds[aboveIndex];
379 leds[currentIndex].fadeToBlackBy(40);
380 }
381 }
382 }
383
384
386 for (int i = 0; i < numDrops; i++) {
388 int ledIndex =
xyMap(
x, 0);
389 if (ledIndex >= 0 && ledIndex <
NUM_LEDS) {
390 leds[ledIndex] =
CHSV(96, 255, 255);
391 }
392 }
393}
UISlider audioGain("Audio Gain", 1.0f, 0.1f, 5.0f, 0.1f)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
References audioGain(), autoGainValue, HEIGHT, leds, NUM_LEDS, WIDTH, x, xyMap, and y.
Referenced by loop().