FastLED 3.9.15
Loading...
Searching...
No Matches

◆ mapPixels()

void fl::XYMap::mapPixels ( const CRGB * input,
CRGB * output ) const

Definition at line 65 of file xymap.cpp.

65 {
66 uint16_t pos = 0;
67 for (uint16_t y = 0; y < height; y++) {
68 for (uint16_t x = 0; x < width; x++) {
69 uint16_t i = pos++;
70 output[i] = input[mapToIndex(x, y)];
71 }
72 }
73}
uint8_t pos
Definition Blur.ino:11
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
uint16_t width
Definition xymap.h:100
uint16_t mapToIndex(uint16_t x, uint16_t y) const
Definition xymap.cpp:96
uint16_t height
Definition xymap.h:101

References height, mapToIndex(), pos, width, x, and y.

+ Here is the call graph for this function: