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

◆ ScreenMap() [2/5]

fl::ScreenMap::ScreenMap ( uint32_t length,
float mDiameter = -1.0f )

Definition at line 171 of file screenmap.cpp.

173 mLookUpTable = LUTXYFLOATPtr::New(length);
174 LUTXYFLOAT &lut = *mLookUpTable.get();
175 vec2f *data = lut.getDataMutable();
176 for (uint32_t x = 0; x < length; x++) {
177 data[x] = {0, 0};
178 }
179}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
float mDiameter
Definition screenmap.h:93
uint32_t length
Definition screenmap.h:92
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:94
LUT< vec2f > LUTXYFLOAT
Definition lut.h:25
vec2< float > vec2f
Definition geometry.h:318

References fl::LUT< T >::getDataMutable(), length, mDiameter, mLookUpTable, and x.

+ Here is the call graph for this function: