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

Method setFx2d

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

Source from the content-addressed store, hash-verified

13 mInterpolationMode(mode), mGrid(new CRGB[fx2d->getNumLeds()]) {} // ok bare allocation (array new)
14
15void Fx2dTo1d::setFx2d(Fx2dPtr fx2d) {
16 mFx2d = fx2d;
17 // Reallocate grid buffer if needed
18 mGrid.reset(new CRGB[fx2d->getNumLeds()]); // ok bare allocation (array new)
19}
20
21void Fx2dTo1d::draw(DrawContext context) {
22 // Step 1: Render 2D effect to internal grid

Callers

nothing calls this directly

Calls 2

getNumLedsMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected