5#define FASTLED_INTERNAL
26 FASTLED_ASSERT(
false,
"the user didn't provide an XY function");
57 fl::u8 keep = 255 - blur_amount;
58 fl::u8 seep = blur_amount >> 1;
60 for (fl::u16 i = 0; i < numLeds; ++i) {
94 fl::u8 keep = 255 - blur_amount;
95 fl::u8 seep = blur_amount >> 1;
96 for (
fl::u8 row = 0; row < height; row++) {
98 for (
fl::u8 i = 0; i < width; i++) {
105 leds[
xyMap.mapToIndex(i - 1, row)] += part;
116 fl::u8 keep = 255 - blur_amount;
117 fl::u8 seep = blur_amount >> 1;
118 for (
fl::u8 col = 0; col < width; ++col) {
120 for (
fl::u8 i = 0; i < height; ++i) {
127 leds[
xyMap.mapToIndex(col, i - 1)] += part;
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
central include file for FastLED, defines the CFastLED class/object
unsigned int xy(unsigned int x, unsigned int y)
static XYMap constructWithUserFunction(u16 width, u16 height, XYFunction xyFunction, u16 offset=0)
Defines the red, green, and blue (RGB) pixel struct.
void blurColumns(CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const XYMap &xyMap)
Perform a blur1d() on every column of a rectangular matrix.
void blurRows(CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const XYMap &xyMap)
Perform a blur1d() on every row of a rectangular matrix.
void blur2d(CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
fl::u16 xy_legacy_wrapper(fl::u16 x, fl::u16 y, fl::u16 width, fl::u16 height)
u8 fract8
Fixed-Point Fractional Types.
void blur1d(CRGB *leds, fl::u16 numLeds, fract8 blur_amount)
fl::u16 XY(fl::u8 x, fl::u8 y) FL_LINK_WEAK
Fast, efficient 8-bit scaling functions specifically designed for high-performance LED programming.
CRGB & nscale8(fl::u8 scaledown)
Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an RGB pixel (Red, Green, Blue)
#define FASTLED_UNUSED(x)