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

◆ fill_gradient_RGB() [1/3]

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

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

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

Definition at line 329 of file pixelset.h.

329 {
330 if(dir >= 0) {
332 } else {
334 }
335 return *this;
336 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:72
const int8_t dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:69
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:70
Represents a set of LED objects.
Definition pixelset.h:67
#define FUNCTION_FILL_GRADIENT_RGB3(a, b, c, d, e)
Definition pixelset.h:30