FastLED 3.9.15
Loading...
Searching...
No Matches

◆ getPalette()

fl::CRGBPalette16 getPalette ( )

Definition at line 142 of file FireMatrix.h.

142 {
143 // This function returns the appropriate color palette based on the UI selection
144 switch (palette) {
145 case 0:
146 return firepal; // Traditional orange/red fire
147 case 1:
148 return electricGreenFirePal; // Green "toxic" fire
149 case 2:
150 return electricBlueFirePal; // Blue "cold" fire
151 default:
152 return firepal; // Default to traditional fire if invalid value
153 }
154}
UINumberField palette("Palette", 0, 0, 2)

References palette().

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: