18 mGrid.reset(
new CRGB[fx2d->getNumLeds()]);
24 mFx2d->draw(grid_context);
InterpolationMode
Interpolation mode for sampling the 2D grid.
InterpolationMode mInterpolationMode
fl::unique_ptr< CRGB[]> mGrid
Fx2dTo1d(u16 numLeds, Fx2dPtr fx2d, const ScreenMap &screenMap, InterpolationMode mode=BILINEAR)
Construct a 2D-to-1D sampling effect.
fl::string fxName() const override
void setFx2d(Fx2dPtr fx2d)
Replace the underlying 2D effect.
void draw(DrawContext context) override
CRGB sample(const CRGB *grid, const XYMap &xyMap, float x, float y, SampleMode mode)
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)