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

◆ getPalette()

CRGBPalette16 getPalette ( )

Definition at line 159 of file FireCylinder.h.

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