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

◆ fill_gradient_RGB() [3/3]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::fill_gradient_RGB ( const PIXEL_TYPE & startcolor,
const PIXEL_TYPE & endcolor,
TGradientDirectionCode directionCode = fl::SHORTEST_HUES )
inline

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

Parameters
startcolorthe starting color in the gradient
endcolorthe end color for the gradient
directionCodethe direction to travel around the color wheel
See also
::fill_gradient_RGB(CRGB*, uint16_t, const CRGB&, const CRGB&)

Definition at line 357 of file pixelset.h.

357 {
358 FASTLED_UNUSED(directionCode); // TODO: why is this not used?
359 if(dir >= 0) {
361 } else {
363 }
364 return *this;
365 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:115
const int8_t dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:112
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:113
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition pixelset.h:110
#define FUNCTION_FILL_GRADIENT_RGB(a, b, c, d)
Definition pixelset.h:22
#define FASTLED_UNUSED(x)
Definition unused.h:4