FastLED 3.9.3
Loading...
Searching...
No Matches
Predefined Color Palettes

Detailed Description

Stock color palettes, only included when used.

These palettes are all declared as PROGMEM, meaning that they won't take up SRAM on AVR chips until used. Furthermore, the compiler won't even include these in your PROGMEM (flash) storage unless you specifically use each one, so you only "pay for" those you actually use.

Macros

#define RainbowStripesColors_p   RainbowStripeColors_p
 Alias of RainbowStripeColors_p.
 

Functions

 DEFINE_GRADIENT_PALETTE (Rainbow_gp)
 Rainbow gradient.
 

Variables

const TProgmemRGBPalette16 CloudColors_p
 Cloudy color palette.
 
const TProgmemRGBPalette16 LavaColors_p
 Lava color palette.
 
const TProgmemRGBPalette16 OceanColors_p
 Ocean colors, blues and whites.
 
const TProgmemRGBPalette16 ForestColors_p
 Forest colors, greens.
 
const TProgmemRGBPalette16 RainbowColors_p
 HSV Rainbow.
 
const TProgmemRGBPalette16 RainbowStripeColors_p
 HSV Rainbow colors with alternatating stripes of black.
 
const TProgmemRGBPalette16 PartyColors_p
 HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
 
const TProgmemRGBPalette16 HeatColors_p
 Approximate "black body radiation" palette, akin to the FastLED HeatColor() function.
 

Macro Definition Documentation

◆ RainbowStripesColors_p

#define RainbowStripesColors_p   RainbowStripeColors_p

Alias of RainbowStripeColors_p.

Definition at line 137 of file colorpalettes.cpp.

Function Documentation

◆ DEFINE_GRADIENT_PALETTE()

DEFINE_GRADIENT_PALETTE ( Rainbow_gp )

Rainbow gradient.

Provided for situations where you're going to use a number of other gradient palettes, AND you want a "standard" FastLED rainbow as well.

Definition at line 178 of file colorpalettes.cpp.

Variable Documentation

◆ CloudColors_p

◆ ForestColors_p

◆ HeatColors_p

const TProgmemRGBPalette16 HeatColors_p
extern
Initial value:
=
{
0x000000,
0x330000, 0x660000, 0x990000, 0xCC0000, 0xFF0000,
0xFF3300, 0xFF6600, 0xFF9900, 0xFFCC00, 0xFFFF00,
0xFFFF33, 0xFFFF66, 0xFFFF99, 0xFFFFCC, 0xFFFFFF
}

Approximate "black body radiation" palette, akin to the FastLED HeatColor() function.

It's recommended that you use values 0-240 rather than the usual 0-255, as the last 15 colors will be "wrapping around" from the hot end to the cold end, which looks wrong.

Examples
Fire2012WithPalette.ino.

◆ LavaColors_p

◆ OceanColors_p

const TProgmemRGBPalette16 OceanColors_p
extern

◆ PartyColors_p

const TProgmemRGBPalette16 PartyColors_p
extern
Initial value:
=
{
0x5500AB, 0x84007C, 0xB5004B, 0xE5001B,
0xE81700, 0xB84700, 0xAB7700, 0xABAB00,
0xAB5500, 0xDD2200, 0xF2000E, 0xC2003E,
0x8F0071, 0x5F00A1, 0x2F00D0, 0x0007F9
}

HSV color ramp: blue, purple, pink, red, orange, yellow (and back).

Basically, everything but the greens, which tend to make people's skin look unhealthy. This palette is good for lighting at a club or party, where it'll be shining on people.

Examples
ColorPalette.ino.

◆ RainbowColors_p

const TProgmemRGBPalette16 RainbowColors_p
extern
Initial value:
=
{
0xFF0000, 0xD52A00, 0xAB5500, 0xAB7F00,
0xABAB00, 0x56D500, 0x00FF00, 0x00D52A,
0x00AB55, 0x0056AA, 0x0000FF, 0x2A00D5,
0x5500AB, 0x7F0081, 0xAB0055, 0xD5002B
}

HSV Rainbow.

Examples
ColorPalette.ino.

◆ RainbowStripeColors_p

const TProgmemRGBPalette16 RainbowStripeColors_p
extern
Initial value:
=
{
0xFF0000, 0x000000, 0xAB5500, 0x000000,
0xABAB00, 0x000000, 0x00FF00, 0x000000,
0x00AB55, 0x000000, 0x0000FF, 0x000000,
0x5500AB, 0x000000, 0xAB0055, 0x000000
}

HSV Rainbow colors with alternatating stripes of black.

Examples
ColorPalette.ino.