5#define FASTLED_INTERNAL
25 FASTLED_ASSERT(
false,
"the user didn't provide an XY function");
56 fl::u8 keep = 255 - blur_amount;
57 fl::u8 seep = blur_amount >> 1;
59 for (fl::u16 i = 0; i < numLeds; ++i) {
93 fl::u8 keep = 255 - blur_amount;
94 fl::u8 seep = blur_amount >> 1;
95 for (
fl::u8 row = 0; row < height; row++) {
97 for (
fl::u8 i = 0; i < width; i++) {
104 leds[
xyMap.mapToIndex(i - 1, row)] += part;
115 fl::u8 keep = 255 - blur_amount;
116 fl::u8 seep = blur_amount >> 1;
117 for (
fl::u8 col = 0; col < width; ++col) {
119 for (
fl::u8 i = 0; i < height; ++i) {
126 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)
fl::u16 XY(fl::u8 x, fl::u8 y)
u8 fract8
Fixed-Point Fractional Types.
void blur1d(CRGB *leds, fl::u16 numLeds, fract8 blur_amount)
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)