234 {
235 const int w =
canvas.width;
236 const int h =
canvas.height;
238 fl::u8 keep = 255 - blur_amount;
239 fl::u8 seep = blur_amount >> 1;
240 for (int col = 0; col < w; ++col) {
242 for (int row = 0; row < h; ++row) {
243 CRGB cur = pixels[row * w + col];
248 if (row)
249 pixels[(row - 1) * w + col] += part;
250 pixels[row * w + col] =
cur;
251 carryover = part;
252 }
253 }
254}
fl::CanvasRGB canvas(fl::span< CRGB >(leds, NUM_LEDS), WIDTH, HEIGHT)
CRGB & nscale8(u8 scaledown) FL_NO_EXCEPT
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 8-bit RGB pixel (Red, Green, Blue)