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

◆ ScreenMap() [3/5]

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

Definition at line 160 of file screenmap.cpp.

161 : length(length), mDiameter(diameter) {
162 mLookUpTable = LUTXYFLOATPtr::New(length);
163 LUTXYFLOAT &lut16xy = *mLookUpTable.get();
164 pair_xy_float *data = lut16xy.getData();
165 for (uint32_t x = 0; x < length; x++) {
166 data[x] = lut[x];
167 }
168}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
float mDiameter
Definition screenmap.h:82
uint32_t length
Definition screenmap.h:81
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:83
pair_xy< float > pair_xy_float
Definition lut.h:24
LUT< pair_xy_float > LUTXYFLOAT
Definition lut.h:34

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

+ Here is the call graph for this function: