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

◆ fill_rainbow()

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::fill_rainbow ( uint8_t initialhue,
uint8_t deltahue = 5 )
inline

Fill all of the LEDs with a rainbow of colors.

Parameters
initialhuethe starting hue for the rainbow
deltahuehow many hue values to advance for each LED
See also
fill_rainbow(struct CRGB*, int, uint8_t, uint8_t)

Definition at line 255 of file pixelset.h.

255 {
256 if(dir >= 0) {
258 } else {
260 }
261 return *this;
262 }
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_RAINBOW(a, b, c, d)
Definition pixelset.h:21