Definition at line 372 of file advanced.h.
372 {
373
376 int currentIndex =
xyMap(
x,
y);
377 int aboveIndex =
xyMap(
x,
y - 1);
378 if (currentIndex >= 0 && currentIndex <
NUM_LEDS &&
379 aboveIndex >= 0 && aboveIndex <
NUM_LEDS) {
380 leds[currentIndex] =
leds[aboveIndex];
381 leds[currentIndex].fadeToBlackBy(40);
382 }
383 }
384 }
385
386
388 for (int i = 0; i < numDrops; i++) {
390 int ledIndex =
xyMap(
x, 0);
391 if (ledIndex >= 0 && ledIndex <
NUM_LEDS) {
392 leds[ledIndex] =
CHSV(96, 255, 255);
393 }
394 }
395}
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().