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

◆ constructWithLookUpTable()

XYMap fl::XYMap::constructWithLookUpTable ( u16 width,
u16 height,
const u16 * lookUpTable,
u16 offset = 0 )
static

Definition at line 41 of file xymap.cpp.

43 {
45 out.mLookUpTable = fl::make_shared<LUT16>(width * height);
46 memcpy(out.mLookUpTable->getDataMutable(), lookUpTable,
47 width * height * sizeof(u16));
48 out.mOffset = offset;
49 return out;
50}
u16 width
Definition xymap.h:127
@ kLookUpTable
Definition xymap.h:47
XYMap(u16 width, u16 height, bool is_serpentine=true, u16 offset=0)
Definition xymap.cpp:59
u16 height
Definition xymap.h:128
UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
shared_ptr< T > make_shared(Args &&... args)
Definition shared_ptr.h:348

References XYMap(), height, kLookUpTable, fl::make_shared(), mLookUpTable, mOffset, offset(), and width.

+ Here is the call graph for this function: