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
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
247
of file
pixelset.h
.
247
{
248
if
(
dir
>= 0) {
249
FUNCTION_FILL_RAINBOW
(
leds
,
len
,
initialhue
,
deltahue
);
250
}
else
{
251
FUNCTION_FILL_RAINBOW
(
leds
+
len
+ 1, -
len
,
initialhue
-
deltahue
* (
len
+1), -
deltahue
);
252
}
253
return
*
this
;
254
}
CPixelView::leds
PIXEL_TYPE *const leds
pointer to the LED data
Definition
pixelset.h:64
CPixelView::dir
const int8_t dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition
pixelset.h:61
CPixelView::len
const int len
length of the LED data, in PIXEL_TYPE units.
Definition
pixelset.h:62
CPixelView
Represents a set of LED objects.
Definition
pixelset.h:59
FUNCTION_FILL_RAINBOW
#define FUNCTION_FILL_RAINBOW(a, b, c, d)
Definition
pixelset.h:14
CPixelView
Generated on Thu May 29 2025 04:44:58 for FastLED by
1.13.2