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

◆ CRGBPalette16() [15/16]

CRGBPalette16::CRGBPalette16 ( const CRGB & c1,
const CRGB & c2,
const CRGB & c3,
const CRGB & c4 )
inline

Create palette with four-color gradient.

Parameters
c1the starting color for the gradient
c2the first middle color for the gradient
c3the second middle color for the gradient
c4the end color for the gradient

Definition at line 1176 of file colorutils.h.

1177 {
1178 fill_gradient_RGB( &(entries[0]), 16, c1, c2, c3, c4);
1179 }
CRGB entries[16]
the color entries that make up the palette
void fill_gradient_RGB(CRGB *leds, uint16_t startpos, CRGB startcolor, uint16_t endpos, CRGB endcolor)
Fill a range of LEDs with a smooth RGB gradient between two RGB colors.

References entries, and fill_gradient_RGB().

+ Here is the call graph for this function: