FastLED 3.10.8
Loading...
Searching...
No Matches

◆ fill_rainbow()

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::fill_rainbow ( fl::u8 initialhue,
fl::u8 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 291 of file pixelset.h.

291 {
292 if(dir >= 0) {
294 } else {
296 }
297 return *this;
298 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:108
const fl::i8 dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:105
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:106
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition pixelset.h:103
#define FUNCTION_FILL_RAINBOW(a, b, c, d)
Definition pixelset.h:15