56 return mFx2d->hasFixedFrameRate(fps);
void setInterpolationMode(InterpolationMode mode)
Set the interpolation mode.
InterpolationMode
Interpolation mode for sampling the 2D grid.
@ NEAREST
Nearest neighbor (fast, pixelated)
@ BILINEAR
Bilinear interpolation (smooth)
void setScreenMap(const ScreenMap &screenMap)
Set the screen map for coordinate mapping.
Fx2dPtr getFx2d() const
Get the underlying 2D effect.
void pause(u32 now) override
InterpolationMode mInterpolationMode
void resume(u32 now) override
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
bool hasFixedFrameRate(float *fps) const override
void setFx2d(Fx2dPtr fx2d)
Replace the underlying 2D effect.
void draw(DrawContext context) override
Fx2dTo1d samples a 2D effect into a 1D LED strip using a ScreenMap.
@ SAMPLE_BILINEAR
Bilinear interpolation (smooth)
@ SAMPLE_NEAREST
Nearest neighbor (fast, pixelated)
Base definition for an LED controller.
2D grid sampling with bilinear and nearest-neighbor interpolation
#define FASTLED_SHARED_PTR(type)