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

◆ setFx2d()

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

Replace the underlying 2D effect.

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

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

References mFx2d, and mGrid.