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

◆ ScreenMap() [3/6]

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

Definition at line 322 of file screenmap.cpp.

323 : length(length), mDiameter(diameter) {
325 LUTXYFLOAT &lut16xy = *mLookUpTable.get();
326 vec2f *data = lut16xy.getDataMutable();
327 for (u32 x = 0; x < length; x++) {
328 data[x] = lut[x];
329 }
330}
int x
Definition simple.h:92
float mDiameter
Definition screenmap.h:102
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:103
LUT< vec2f > LUTXYFLOAT
Definition lut.h:26
vec2< float > vec2f
Definition geometry.h:333
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348

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

+ Here is the call graph for this function: