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

Method init

src/fl/fx/2d/flowfield.h:172–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 FlowFieldFPState() FL_NOEXCEPT {}
171
172 void init(int w, int h) {
173 width = w;
174 height = h;
175 count = (w * h + 3) & ~3; // Pad to multiple of 4
176
177 r.resize(count, 0);
178 g.resize(count, 0);
179 b.resize(count, 0);
180 tr.resize(count, 0);
181 tg.resize(count, 0);
182 tb.resize(count, 0);
183 x_prof.resize(w, 0);
184 y_prof.resize(h, 0);
185 }
186};
187
188FASTLED_SHARED_PTR(FlowField);

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected