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

◆ ScreenMap() [5/7]

fl::ScreenMap::ScreenMap ( int count,
float diameter,
fl::function< void(int, vec2f &pt_out)> func )

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

477 : length(count), mDiameter(diameter) {
478 if (count > 0) {
480 LUTXYFLOAT &lut = *mLookUpTable.get();
481 vec2f *data = lut.getDataMutable();
482 for (int i = 0; i < count; i++) {
483 func(i, data[i]);
484 }
485 }
486}
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, and mLookUpTable.

+ Here is the call graph for this function: