FastLED 3.9.15
Loading...
Searching...
No Matches

◆ Fx2dTo1d()

fl::Fx2dTo1d::Fx2dTo1d ( u16 numLeds,
Fx2dPtr fx2d,
const ScreenMap & screenMap,
InterpolationMode mode = BILINEAR )

Construct a 2D-to-1D sampling effect.

Parameters
numLedsNumber of LEDs in the 1D strip
fx2dThe 2D effect to sample from
screenMapMapping from 1D index to 2D float coordinates
modeInterpolation mode (default: BILINEAR)

Definition at line 10 of file fx2d_to_1d.cpp.hpp.

12 : Fx1d(numLeds), mFx2d(fx2d), mScreenMap(screenMap),
13 mInterpolationMode(mode), mGrid(new CRGB[fx2d->getNumLeds()]) {} // ok bare allocation (array new)
Fx1d(u16 numLeds)
Definition fx1d.h:12
InterpolationMode mInterpolationMode
Definition fx2d_to_1d.h:79
fl::unique_ptr< CRGB[]> mGrid
Definition fx2d_to_1d.h:82
ScreenMap mScreenMap
Definition fx2d_to_1d.h:78
Fx2dPtr mFx2d
Definition fx2d_to_1d.h:77
fl::ScreenMap screenMap
Definition Corkscrew.h:101
fl::CRGB CRGB
Definition video.h:15

References fl::Fx1d::Fx1d(), fl::Fx::getNumLeds(), mFx2d, mGrid, mInterpolationMode, mScreenMap, and screenMap.

+ Here is the call graph for this function: