Definition at line 422 of file advanced.h.
422 {
423 static float time = 0;
424 time += 0.05f + (peak * 0.2f);
425
427
430 float value = sinf(
x * 0.1f + time) +
431 sinf(
y * 0.1f - time) +
432 sinf((
x +
y) * 0.1f + time) +
433 sinf(sqrtf(
x *
x +
y *
y) * 0.1f - time);
434
435 value = (value + 4) / 8;
437
438 uint8_t colorIndex = value * 255;
440 if (ledIndex >= 0 && ledIndex <
NUM_LEDS) {
442 }
443 }
444 }
445}
UINumberField palette("Palette", 0, 0, 2)
UISlider audioGain("Audio Gain", 1.0f, 0.1f, 5.0f, 0.1f)
CRGBPalette16 getCurrentPalette()
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.
References audioGain(), autoGainValue, ColorFromPalette(), getCurrentPalette(), HEIGHT, hue, leds, NUM_LEDS, palette(), fl::time(), WIDTH, x, xyMap, and y.
Referenced by loop().