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

◆ getPalette()

CRGBPalette16 getPalette ( )

Definition at line 158 of file FireCylinder.h.

158 {
159 // This function returns the appropriate color palette based on the UI selection
160 switch (palette) {
161 case 0:
162 return firepal; // Traditional orange/red fire
163 case 1:
164 return electricGreenFirePal; // Green "toxic" fire
165 case 2:
166 return electricBlueFirePal; // Blue "cold" fire
167 default:
168 return firepal; // Default to traditional fire if invalid value
169 }
170}
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: