| 83 | height(height), mOffset(offset) {} |
| 84 | |
| 85 | void 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 | |
| 95 | void XYMap::convertToLookUpTable() { |
| 96 | if (type == kLookUpTable) { |