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

◆ fill_gradient() [3/3]

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

Fill all of the LEDs with a smooth HSV gradient between two HSV 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(T*, uint16_t, const CHSV&, const CHSV&, TGradientDirectionCode)

Definition at line 261 of file pixelset.h.

261 {
262 if(dir >= 0) {
264 } else {
266 }
267 return *this;
268 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:64
const int8_t dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:61
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:62
Represents a set of LED objects.
Definition pixelset.h:59
#define FUNCTION_FILL_GRADIENT(a, b, c, d, e)
Definition pixelset.h:18