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

◆ ScreenMap() [2/6]

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

Definition at line 310 of file screenmap.cpp.

312 if (length > 0) {
314 LUTXYFLOAT &lut = *mLookUpTable.get();
315 vec2f *data = lut.getDataMutable();
316 for (u32 x = 0; x < length; x++) {
317 data[x] = {0, 0};
318 }
319 }
320}
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: