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

◆ fill_gradient_RGB() [6/7]

void fl::fill_gradient_RGB ( fl::span< CRGB > leds,
const CRGB & c1,
const CRGB & c2,
const CRGB & c3 )
inline

Fill a range of LEDs with a smooth RGB gradient between two RGB colors.

Unlike HSV, there is no "color wheel" in RGB space, and therefore there's only one "direction" for the gradient to go. This means there's no TGradientDirectionCode parameter for direction.

Parameters
ledsa pointer to the LED array to fill
startposthe starting position in the array
startcolorthe starting color for the gradient
endposthe ending position in the array
endcolorthe end color for the gradient

Definition at line 314 of file fill.h.

315 {
316 fill_gradient_RGB(leds.data(), static_cast<u16>(leds.size()), c1, c2, c3);
317}
fl::CRGB leds[NUM_LEDS]
void fill_gradient_RGB(CRGB *leds, u16 startpos, CRGB startcolor, u16 endpos, CRGB endcolor)
Fill a range of LEDs with a smooth RGB gradient between two RGB colors.
Definition fill.cpp.hpp:107

References fill_gradient_RGB(), FL_NOEXCEPT, and leds.

+ Here is the call graph for this function: