FastLED 3.9.15
|
void fill_gradient_RGB | ( | CRGB * | leds, |
uint16_t | startpos, | ||
CRGB | startcolor, | ||
uint16_t | endpos, | ||
CRGB | endcolor ) |
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.
leds | a pointer to the LED array to fill |
startpos | the starting position in the array |
startcolor | the starting color for the gradient |
endpos | the ending position in the array |
endcolor | the end color for the gradient |
Definition at line 145 of file colorutils.cpp.
References leds, and saccum87.
Referenced by CRGBPalette16::CRGBPalette16(), CRGBPalette16::CRGBPalette16(), CRGBPalette16::CRGBPalette16(), CRGBPalette256::CRGBPalette256(), CRGBPalette256::CRGBPalette256(), CRGBPalette256::CRGBPalette256(), CRGBPalette32::CRGBPalette32(), CRGBPalette32::CRGBPalette32(), CRGBPalette32::CRGBPalette32(), fill_gradient_RGB(), fill_gradient_RGB(), fill_gradient_RGB(), CRGBPalette16::loadDynamicGradientPalette(), CRGBPalette256::loadDynamicGradientPalette(), CRGBPalette32::loadDynamicGradientPalette(), CRGBPalette16::operator=(), CRGBPalette256::operator=(), and CRGBPalette32::operator=().