FastLED 3.10.6
Loading...
Searching...
No Matches

◆ ScreenMap() [3/7]

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

Definition at line 567 of file screenmap.cpp.hpp.

570 LUTXYFLOAT &lut16xy = *mLookUpTable.get();
571 vec2f *data = lut16xy.getDataMutable();
572 for (u32 x = 0; x < length; x++) {
573 data[x] = lut[x];
574 }
575}
float mDiameter
Definition screenmap.h:142
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:143
float normalizedDiameter(float diameter) FL_NO_EXCEPT
vec2< float > vec2f
Definition geometry.h:333
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414
LUT< vec2f > LUTXYFLOAT
Definition lut.h:26

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

+ Here is the call graph for this function: