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

◆ ScreenMap() [2/7]

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

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

557 if (length > 0) {
559 LUTXYFLOAT &lut = *mLookUpTable.get();
560 vec2f *data = lut.getDataMutable();
561 for (u32 x = 0; x < length; x++) {
562 data[x] = {0, 0};
563 }
564 }
565}
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: