FastLED 3.10.6
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 577 of file screenmap.cpp.hpp.

578 : length(count), mDiameter(normalizedDiameter(diameter)) {
579 if (count > 0) {
581 LUTXYFLOAT &lut = *mLookUpTable.get();
582 vec2f *data = lut.getDataMutable();
583 for (int i = 0; i < count; i++) {
584 func(i, data[i]);
585 }
586 }
587}
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(), fl::make_shared(), mDiameter, and mLookUpTable.

+ Here is the call graph for this function: