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

◆ ScreenMap() [3/7]

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

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

467 : length(length), mDiameter(diameter) {
469 LUTXYFLOAT &lut16xy = *mLookUpTable.get();
470 vec2f *data = lut16xy.getDataMutable();
471 for (u32 x = 0; x < length; x++) {
472 data[x] = lut[x];
473 }
474}
float mDiameter
Definition screenmap.h:125
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:126
vec2< float > vec2f
Definition geometry.h:333
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
LUT< vec2f > LUTXYFLOAT
Definition lut.h:26

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

+ Here is the call graph for this function: