MCPcopy Create free account
hub / github.com/FastLED/FastLED / Fx2dTo1d

Method Fx2dTo1d

src/fl/fx/fx2d_to_1d.cpp.hpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace fl {
9
10Fx2dTo1d::Fx2dTo1d(u16 numLeds, Fx2dPtr fx2d, const ScreenMap &screenMap,
11 InterpolationMode mode)
12 : Fx1d(numLeds), mFx2d(fx2d), mScreenMap(screenMap),
13 mInterpolationMode(mode), mGrid(new CRGB[fx2d->getNumLeds()]) {} // ok bare allocation (array new)
14
15void Fx2dTo1d::setFx2d(Fx2dPtr fx2d) {
16 mFx2d = fx2d;

Callers

nothing calls this directly

Calls 1

getNumLedsMethod · 0.80

Tested by

no test coverage detected