5#define FASTLED_INTERNAL
19uint16_t
XY(uint8_t
x, uint8_t
y) __attribute__((weak));
21__attribute__((weak)) uint16_t
XY(uint8_t
x, uint8_t
y) {
24 FASTLED_ASSERT(
false,
"the user didn't provide an XY function");
55 uint8_t keep = 255 - blur_amount;
56 uint8_t seep = blur_amount >> 1;
58 for (uint16_t i = 0; i < numLeds; ++i) {
92 uint8_t keep = 255 - blur_amount;
93 uint8_t seep = blur_amount >> 1;
94 for (uint8_t row = 0; row < height; row++) {
96 for (uint8_t i = 0; i < width; i++) {
103 leds[
xyMap.mapToIndex(i - 1, row)] += part;
114 uint8_t keep = 255 - blur_amount;
115 uint8_t seep = blur_amount >> 1;
116 for (uint8_t col = 0; col < width; ++col) {
118 for (uint8_t i = 0; i < height; ++i) {
125 leds[
xyMap.mapToIndex(col, i - 1)] += part;
XYMap xyMap(WIDTH, HEIGHT, false)
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(uint16_t width, uint16_t height, XYFunction xyFunction, uint16_t offset=0)
Defines the red, green, and blue (RGB) pixel struct.
void blurColumns(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xyMap)
Perform a blur1d() on every column of a rectangular matrix.
void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
void blur1d(CRGB *leds, uint16_t numLeds, fract8 blur_amount)
One-dimensional blur filter.
void blurRows(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xyMap)
Perform a blur1d() on every row of a rectangular matrix.
uint8_t fract8
ANSI: unsigned short _Fract.
uint16_t xy_legacy_wrapper(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
uint16_t XY(uint8_t x, uint8_t y)
Implements a simple red square effect for 2D LED grids.
Fast, efficient 8-bit scaling functions specifically designed for high-performance LED programming.
CRGB & nscale8(uint8_t 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)