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 42 of file xymap.cpp.hpp.

44 {
46 out.mLookUpTable = fl::make_shared<LUT16>(width * height);
47 fl::memcpy(out.mLookUpTable->getDataMutable(), lookUpTable,
48 width * height * sizeof(u16));
49 out.mOffset = offset;
50 return out;
51}
u16 width
Definition xymap.h:128
@ kLookUpTable
Definition xymap.h:43
u16 height
Definition xymap.h:129
XYMap(u16 width, u16 height, bool is_serpentine=true, u16 offset=0) FL_NOEXCEPT
Definition xymap.cpp.hpp:80
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

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

Referenced by fromXMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: