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

Method CanvasMapped

src/fl/gfx/canvas.h:136–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 int height;
135
136 CanvasMapped(fl::span<RGB_T> buf, const XYMap& map) FL_NOEXCEPT
137 : pixels(buf), xymap(&map),
138 width(map.getWidth()), height(map.getHeight()) {}
139
140 int size() const FL_NOEXCEPT { return width * height; }
141 RGB_T& at(int x, int y) FL_NOEXCEPT { return pixels[xymap->mapToIndex(x, y)]; }

Callers

nothing calls this directly

Calls 2

getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected