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 174 of file screenmap.cpp.

175 : length(length), mDiameter(diameter) {
176 mLookUpTable = LUTXYFLOATPtr::New(length);
177 LUTXYFLOAT &lut16xy = *mLookUpTable.get();
178 vec2f *data = lut16xy.getDataMutable();
179 for (uint32_t x = 0; x < length; x++) {
180 data[x] = lut[x];
181 }
182}
int x
Definition Audio.ino:71
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:301

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

+ Here is the call graph for this function: