FastLED
3.9.15
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
initialhue
the starting hue for the rainbow
deltahue
how many hue values to advance for each LED
See also
::fill_rainbow(struct CRGB*, int, uint8_t, uint8_t)
Definition at line
290
of file
pixelset.h
.
290
{
291
if
(
dir
>= 0) {
292
FUNCTION_FILL_RAINBOW
(
leds
,
len
,
initialhue
,
deltahue
);
293
}
else
{
294
FUNCTION_FILL_RAINBOW
(
leds
+
len
+ 1, -
len
,
initialhue
-
deltahue
* (
len
+1), -
deltahue
);
295
}
296
return
*
this
;
297
}
CPixelView::leds
PIXEL_TYPE *const leds
pointer to the LED data
Definition
pixelset.h:107
CPixelView::dir
const fl::i8 dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition
pixelset.h:104
CPixelView::len
const int len
length of the LED data, in PIXEL_TYPE units.
Definition
pixelset.h:105
CPixelView
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition
pixelset.h:102
FUNCTION_FILL_RAINBOW
#define FUNCTION_FILL_RAINBOW(a, b, c, d)
Definition
pixelset.h:14
CPixelView
Generated on Tue Jun 16 2026 00:07:03 for FastLED by
1.13.2