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

◆ getCurrentPalette()

CRGBPalette16 getCurrentPalette ( )

Definition at line 103 of file advanced.h.

103 {
104 switch(colorPalette.as_int()) {
105 case 0: return CRGBPalette16(RainbowColors_p);
106 case 1: return CRGBPalette16(HeatColors_p);
107 case 2: return CRGBPalette16(OceanColors_p);
108 case 3: return CRGBPalette16(ForestColors_p);
109 case 4: return CRGBPalette16(PartyColors_p);
110 case 5: return CRGBPalette16(LavaColors_p);
111 case 6: return CRGBPalette16(CloudColors_p);
112 default: return CRGBPalette16(RainbowColors_p);
113 }
114}
UIDropdown colorPalette("Color Palette", {"Rainbow", "Heat", "Ocean", "Forest", "Party", "Lava", "Cloud"})
const TProgmemRGBPalette16 OceanColors_p
Ocean colors, blues and whites.
const TProgmemRGBPalette16 CloudColors_p
Cloudy color palette.
const TProgmemRGBPalette16 HeatColors_p
Approximate "black body radiation" palette, akin to the FastLED HeatColor() function.
const TProgmemRGBPalette16 ForestColors_p
Forest colors, greens.
const TProgmemRGBPalette16 LavaColors_p
Lava color palette.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.

References CloudColors_p, colorPalette(), ForestColors_p, HeatColors_p, LavaColors_p, OceanColors_p, PartyColors_p, and RainbowColors_p.

Referenced by drawPlasmaWave(), drawRadialSpectrum(), drawSpectrumBars(), drawVUMeter(), and drawWaveform().

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