MCPcopy Create free account
hub / github.com/FastLED/FastLED / getWavePalette

Function getWavePalette

examples/FestivalStick/curr.h:644–656  ·  view source on GitHub ↗

Wave effect helper functions

Source from the content-addressed store, hash-verified

642
643// Wave effect helper functions
644fl::CRGBPalette16 getWavePalette() {
645 int paletteIndex = (int)wavePalette.value();
646 switch (paletteIndex) {
647 case 0:
648 return waveBluepal; // Electric blue waves
649 case 1:
650 return waveGreenpal; // Green/red waves
651 case 2:
652 return waveRainbowpal; // Rainbow waves
653 default:
654 return waveBluepal; // Default to blue
655 }
656}
657
658void triggerWaveRipple() {
659 // Create a ripple at a random position within the central area

Callers 1

drawWaveFunction · 0.85

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected