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

◆ CHSVPalette16() [6/8]

CHSVPalette16::CHSVPalette16 ( const CHSV & c1,
const CHSV & c2 )
inline

Create palette with a gradient from one color to another.

Parameters
c1the starting color for the gradient
c2the end color for the gradient

Definition at line 847 of file colorutils.h.

848 {
849 fill_gradient( &(entries[0]), 16, c1, c2);
850 }
CHSV entries[16]
the color entries that make up the palette
Definition colorutils.h:729
void fill_gradient(T *targetArray, uint16_t startpos, CHSV startcolor, uint16_t endpos, CHSV endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES)
Fill a range of LEDs with a smooth HSV gradient between two HSV colors.
Definition colorutils.h:189

References entries, and fill_gradient().

+ Here is the call graph for this function: