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

◆ mapPixels()

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

Definition at line 64 of file xymap.cpp.

64 {
65 u16 pos = 0;
66 for (u16 y = 0; y < height; y++) {
67 for (u16 x = 0; x < width; x++) {
68 u16 i = pos++;
69 output[i] = input[mapToIndex(x, y)];
70 }
71 }
72}
int y
Definition simple.h:93
int x
Definition simple.h:92
uint8_t pos
Definition Blur.ino:11
u16 width
Definition xymap.h:127
u16 mapToIndex(const u16 &x, const u16 &y) const
Definition xymap.cpp:95
u16 height
Definition xymap.h:128

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

+ Here is the call graph for this function: