FastLED 3.9.7
|
Functions for fading LED arrays
Functions | |
void | fadeLightBy (CRGB *leds, uint16_t num_leds, uint8_t fadeBy) |
Reduce the brightness of an array of pixels all at once. | |
void | fade_video (CRGB *leds, uint16_t num_leds, uint8_t fadeBy) |
Reduce the brightness of an array of pixels all at once. | |
void | nscale8_video (CRGB *leds, uint16_t num_leds, uint8_t scale) |
Scale the brightness of an array of pixels all at once. | |
void | fadeToBlackBy (CRGB *leds, uint16_t num_leds, uint8_t fadeBy) |
Reduce the brightness of an array of pixels all at once. | |
void | fade_raw (CRGB *leds, uint16_t num_leds, uint8_t fadeBy) |
Reduce the brightness of an array of pixels all at once. | |
void | nscale8 (CRGB *leds, uint16_t num_leds, uint8_t scale) |
Scale the brightness of an array of pixels all at once. | |
void | fadeUsingColor (CRGB *leds, uint16_t numLeds, const CRGB &colormask) |
Reduce the brightness of an array of pixels as thought it were seen through a transparent filter with the specified color. | |
void fade_raw | ( | CRGB * | leds, |
uint16_t | num_leds, | ||
uint8_t | fadeBy ) |
Reduce the brightness of an array of pixels all at once.
This function will eventually fade all the way to black.
leds | a pointer to the LED array to fade |
num_leds | the number of LEDs to fade |
fadeBy | how much to fade each LED |
Definition at line 243 of file colorutils.cpp.
void fade_video | ( | CRGB * | leds, |
uint16_t | num_leds, | ||
uint8_t | fadeBy ) |
Reduce the brightness of an array of pixels all at once.
Guaranteed to never fade all the way to black.
leds | a pointer to the LED array to fade |
num_leds | the number of LEDs to fade |
fadeBy | how much to fade each LED |
Definition at line 227 of file colorutils.cpp.
void fadeLightBy | ( | CRGB * | leds, |
uint16_t | num_leds, | ||
uint8_t | fadeBy ) |
Reduce the brightness of an array of pixels all at once.
Guaranteed to never fade all the way to black.
leds | a pointer to the LED array to fade |
num_leds | the number of LEDs to fade |
fadeBy | how much to fade each LED |
Definition at line 232 of file colorutils.cpp.
void fadeToBlackBy | ( | CRGB * | leds, |
uint16_t | num_leds, | ||
uint8_t | fadeBy ) |
Reduce the brightness of an array of pixels all at once.
This function will eventually fade all the way to black.
leds | a pointer to the LED array to fade |
num_leds | the number of LEDs to fade |
fadeBy | how much to fade each LED |
Definition at line 238 of file colorutils.cpp.
Reduce the brightness of an array of pixels as thought it were seen through a transparent filter with the specified color.
For example, if the colormask if CRGB(200, 100, 50), then the pixels' red will be faded to 200/256ths, their green to 100/256ths, and their blue to 50/256ths. This particular example will give a "hot fade" look, with white fading to yellow, then red, then black. You can also use colormasks like CRGB::Blue to zero out the red and green elements, leaving blue (largely) the same.
leds | a pointer to the LED array to fade |
numLeds | the number of LEDs to fade |
colormask | the color mask to fade with |
Definition at line 256 of file colorutils.cpp.
void nscale8 | ( | CRGB * | leds, |
uint16_t | num_leds, | ||
uint8_t | scale ) |
Scale the brightness of an array of pixels all at once.
This function will eventually fade all the way to black, even if "scale" is not zero.
leds | a pointer to the LED array to scale |
num_leds | the number of LEDs to scale |
scale | how much to scale each LED |
Definition at line 249 of file colorutils.cpp.
void nscale8_video | ( | CRGB * | leds, |
uint16_t | num_leds, | ||
uint8_t | scale ) |
Scale the brightness of an array of pixels all at once.
Guaranteed to never fade all the way to black.
leds | a pointer to the LED array to scale |
num_leds | the number of LEDs to scale |
scale | how much to scale each LED |
Definition at line 220 of file colorutils.cpp.