FastLED 3.9.15
Loading...
Searching...
No Matches
blur.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#include "crgb.h"
6#include "fl/deprecated.h"
7
8namespace fl {
9
13
28void blur1d(CRGB *leds, uint16_t numLeds, fract8 blur_amount);
29
45void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount,
46 const fl::XYMap &xymap);
47
51void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount)
52 FASTLED_DEPRECATED("Use blur2d(..., const fl::XYMap& xymap) instead");
53
60void blurRows(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount,
61 const fl::XYMap &xymap);
62
65void blurColumns(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount,
66 const fl::XYMap &xymap);
67
69
70} // namespace fl
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
Defines the red, green, and blue (RGB) pixel struct.
#define FASTLED_DEPRECATED(msg)
Definition deprecated.h:13
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.
Definition blur.cpp:111
void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
Definition blur.cpp:71
void blur1d(CRGB *leds, uint16_t numLeds, fract8 blur_amount)
One-dimensional blur filter.
Definition blur.cpp:54
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.
Definition blur.cpp:83
uint8_t fract8
ANSI: unsigned short _Fract.
Definition types.h:36
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55