19 mGrid.reset(
new CRGB[fx2d->getNumLeds()]);
25 mFx2d->draw(grid_context);
u16 xyMap(u16 x) const FL_NO_EXCEPT
Fx1d(u16 numLeds) FL_NO_EXCEPT
InterpolationMode
Interpolation mode for sampling the 2D grid.
InterpolationMode mInterpolationMode
void draw(DrawContext context) FL_NO_EXCEPT override
fl::string fxName() const FL_NO_EXCEPT override
fl::unique_ptr< CRGB[]> mGrid
Fx2dTo1d(u16 numLeds, Fx2dPtr fx2d, const ScreenMap &screenMap, InterpolationMode mode=BILINEAR) FL_NO_EXCEPT
Construct a 2D-to-1D sampling effect.
void setFx2d(Fx2dPtr fx2d) FL_NO_EXCEPT
Replace the underlying 2D effect.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode) FL_NO_EXCEPT
Sample a pixel from a 2D CRGB grid at floating-point coordinates.
SampleMode
Interpolation mode for sampling a 2D grid.
Base definition for an LED controller.
2D grid sampling with bilinear and nearest-neighbor interpolation
Representation of an 8-bit RGB pixel (Red, Green, Blue)