MCPcopy Create free account
hub / github.com/FastLED/FastLED / constructWithLookUpTable

Method constructWithLookUpTable

src/fl/math/xymap.cpp.hpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42XYMap XYMap::constructWithLookUpTable(u16 width, u16 height,
43 const u16 *lookUpTable,
44 u16 offset) {
45 XYMap out(width, height, kLookUpTable);
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}
52
53XYMap XYMap::constructSerpentine(u16 width, u16 height,
54 u16 offset) {

Callers

nothing calls this directly

Calls 2

getDataMutableMethod · 0.80
memcpyFunction · 0.50

Tested by

no test coverage detected