FastLED 3.9.7
|
Functions for blurring colors
Functions | |
void | blur1d (CRGB *leds, uint16_t numLeds, fract8 blur_amount) |
One-dimensional blur filter. | |
void | blur2d (CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const fl::XYMap &xymap) |
Two-dimensional blur filter. | |
void | blurRows (CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const fl::XYMap &xymap) |
Perform a blur1d() on every row of a rectangular matrix. | |
void | blurColumns (CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const fl::XYMap &xymap) |
Perform a blur1d() on every column of a rectangular matrix. | |
One-dimensional blur filter.
Spreads light to 2 line neighbors.
Total light is NOT entirely conserved, so many repeated calls to 'blur' will also result in the light fading, eventually all the way to black; this is by design so that it can be used to (slowly) clear the LEDs to black.
leds | a pointer to the LED array to blur |
numLeds | the number of LEDs to blur |
blur_amount | the amount of blur to apply |
Definition at line 422 of file colorutils.cpp.
void blur2d | ( | CRGB * | leds, |
uint8_t | width, | ||
uint8_t | height, | ||
fract8 | blur_amount, | ||
const fl::XYMap & | xymap ) |
Two-dimensional blur filter.
Spreads light to 8 XY neighbors.
Total light is NOT entirely conserved, so many repeated calls to 'blur' will also result in the light fading, eventually all the way to black; this is by design so that it can be used to (slowly) clear the LEDs to black.
leds | a pointer to the LED array to blur |
width | the width of the matrix |
height | the height of the matrix |
blur_amount | the amount of blur to apply |
Definition at line 439 of file colorutils.cpp.
void blurColumns | ( | CRGB * | leds, |
uint8_t | width, | ||
uint8_t | height, | ||
fract8 | blur_amount, | ||
const fl::XYMap & | xymap ) |
Perform a blur1d() on every column of a rectangular matrix.
leds | a pointer to the LED array to blur |
width | the width of the matrix |
height | the height of the matrix |
blur_amount | the amount of blur to apply |
Definition at line 472 of file colorutils.cpp.
void blurRows | ( | CRGB * | leds, |
uint8_t | width, | ||
uint8_t | height, | ||
fract8 | blur_amount, | ||
const fl::XYMap & | xymap ) |
Perform a blur1d() on every row of a rectangular matrix.
leds | a pointer to the LED array to blur |
width | the width of the matrix |
height | the height of the matrix |
blur_amount | the amount of blur to apply |
Definition at line 445 of file colorutils.cpp.