FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setFx2d()

void fl::Fx2dTo1d::setFx2d ( Fx2dPtr fx2d)

Replace the underlying 2D effect.

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

16 {
17 mFx2d = fx2d;
18 // Reallocate grid buffer if needed
19 mGrid.reset(new CRGB[fx2d->getNumLeds()]); // ok bare allocation (array new)
20}
fl::unique_ptr< CRGB[]> mGrid
Definition fx2d_to_1d.h:83
Fx2dPtr mFx2d
Definition fx2d_to_1d.h:78
fl::CRGB CRGB
Definition video.h:18

References fl::FL_NO_EXCEPT, mFx2d, and mGrid.