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

Method reset

src/fl/math/grid.h:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 Grid(u32 width, u32 height) { reset(width, height); }
19
20 void reset(u32 width, u32 height) {
21 clear();
22 if (width != mWidth || height != mHeight) {
23 mWidth = width;
24 mHeight = height;
25 mData.resize(width * height);
26
27 }
28 mSlice = fl::MatrixSlice<T>(mData.data(), width, height, 0, 0,
29 width, height);
30 }
31
32 void clear() {
33 for (u32 i = 0; i < mWidth * mHeight; ++i) {

Callers 4

convertToLookUpTableMethod · 0.45
ScreenMapMethod · 0.45
LUTMethod · 0.45
setRectangularGridMethod · 0.45

Calls 3

clearFunction · 0.50
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected