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

◆ fill_gradient() [1/3]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::fill_gradient ( const CHSV & c1,
const CHSV & c2,
const CHSV & c3,
const CHSV & c4,
TGradientDirectionCode directionCode = SHORTEST_HUES )
inline

Fill all of the LEDs with a smooth HSV gradient between four HSV 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
directionCodethe direction to travel around the color wheel
See also
fill_gradient(T*, uint16_t, const CHSV&, const CHSV&, const CHSV&, const CHSV&, TGradientDirectionCode)

Definition at line 300 of file pixelset.h.

300 {
301 if(dir >= 0) {
303 } else {
305 }
306 return *this;
307 }
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_GRADIENT4(a, b, c, d, e, f, g)
Definition pixelset.h:27