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

Method mapPixels

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

Source from the content-addressed store, hash-verified

83 height(height), mOffset(offset) {}
84
85void XYMap::mapPixels(const CRGB *input, CRGB *output) const {
86 u16 pos = 0;
87 for (u16 y = 0; y < height; y++) {
88 for (u16 x = 0; x < width; x++) {
89 u16 i = pos++;
90 output[i] = input[mapToIndex(x, y)];
91 }
92 }
93}
94
95void XYMap::convertToLookUpTable() {
96 if (type == kLookUpTable) {

Callers 1

xymap.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected