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

◆ getPalette()

CRGBPalette16 getPalette ( )

Definition at line 144 of file FireMatrix.h.

144 {
145 // This function returns the appropriate color palette based on the UI selection
146 switch (palette) {
147 case 0:
148 return firepal; // Traditional orange/red fire
149 case 1:
150 return electricGreenFirePal; // Green "toxic" fire
151 case 2:
152 return electricBlueFirePal; // Blue "cold" fire
153 default:
154 return firepal; // Default to traditional fire if invalid value
155 }
156}
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: