Definition at line 432 of file advanced.h.
432 {
433 static float time = 0;
434 time += 0.05f + (peak * 0.2f);
435
437
440 float value =
fl::sinf(
x * 0.1f + time) +
444
445 value = (value + 4) / 8;
447
448 uint8_t colorIndex = value * 255;
450 if (ledIndex >= 0 && ledIndex <
NUM_LEDS) {
452 }
453 }
454 }
455}
UINumberField palette("Palette", 0, 0, 2)
fl::CRGBPalette16 getCurrentPalette()
fl::UISlider audioGain("Audio Gain", 1.0f, 0.1f, 5.0f, 0.1f)
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
float sqrtf(float value) FL_NOEXCEPT
fl::u64 time() FL_NOEXCEPT
Alias for millis64() - returns 64-bit millisecond time.
float sinf(float value) FL_NOEXCEPT
References audioGain(), autoGainValue, ColorFromPalette(), getCurrentPalette(), HEIGHT, hue, leds, NUM_LEDS, palette(), fl::sinf(), fl::sqrtf(), WIDTH, x, xyMap, and y.
Referenced by loop().