FastLED 3.10.8
Loading...
Searching...
No Matches

◆ fill_gradient_RGB() [2/3]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::fill_gradient_RGB ( const PIXEL_TYPE & c1,
const PIXEL_TYPE & c2,
const PIXEL_TYPE & c3,
const PIXEL_TYPE & c4 )
inline

Fill all of the LEDs with a smooth RGB gradient between four RGB colors.

Parameters
c1the starting color in the gradient
c2the first middle color for the gradient
c3the second middle color for the gradient
c4the end color for the gradient
See also
::fill_gradient_RGB(CRGB*, uint16_t, const CRGB&, const CRGB&, const CRGB&, const CRGB&)

Definition at line 380 of file pixelset.h.

380 {
381 if(dir >= 0) {
383 } else {
385 }
386 return *this;
387 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:108
const fl::i8 dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:105
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:106
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition pixelset.h:103
#define FUNCTION_FILL_GRADIENT_RGB4(a, b, c, d, e, f)
Definition pixelset.h:25