Definition at line 420 of file advanced.h.
420 {
421 static float time = 0;
422 time += 0.05f + (peak * 0.2f);
423
425
428 float value = sinf(
x * 0.1f + time) +
429 sinf(
y * 0.1f - time) +
430 sinf((
x +
y) * 0.1f + time) +
431 sinf(sqrtf(
x *
x +
y *
y) * 0.1f - time);
432
433 value = (value + 4) / 8;
435
436 uint8_t colorIndex = value * 255;
438 if (ledIndex >= 0 && ledIndex <
NUM_LEDS) {
440 }
441 }
442 }
443}
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().