57 return mFx2d->hasFixedFrameRate(fps);
Fx1d(u16 numLeds) FL_NO_EXCEPT
void resume(u32 now) FL_NO_EXCEPT override
InterpolationMode
Interpolation mode for sampling the 2D grid.
@ NEAREST
Nearest neighbor (fast, pixelated)
@ BILINEAR
Bilinear interpolation (smooth)
void setInterpolationMode(InterpolationMode mode) FL_NO_EXCEPT
Set the interpolation mode.
Fx2dPtr getFx2d() const FL_NO_EXCEPT
Get the underlying 2D effect.
InterpolationMode mInterpolationMode
void draw(DrawContext context) FL_NO_EXCEPT override
fl::string fxName() const FL_NO_EXCEPT override
fl::unique_ptr< CRGB[]> mGrid
bool hasFixedFrameRate(float *fps) const FL_NO_EXCEPT override
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.
void setScreenMap(const ScreenMap &screenMap) FL_NO_EXCEPT
Set the screen map for coordinate mapping.
void pause(u32 now) FL_NO_EXCEPT override
Fx2dTo1d samples a 2D effect into a 1D LED strip using a ScreenMap.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
@ 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)