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

◆ ScreenMap() [3/5]

fl::ScreenMap::ScreenMap ( const vec2f * lut,
uint32_t length,
float diameter = -1.0 )

Definition at line 181 of file screenmap.cpp.

182 : length(length), mDiameter(diameter) {
183 mLookUpTable = LUTXYFLOATPtr::New(length);
184 LUTXYFLOAT &lut16xy = *mLookUpTable.get();
185 vec2f *data = lut16xy.getDataMutable();
186 for (uint32_t x = 0; x < length; x++) {
187 data[x] = lut[x];
188 }
189}
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: