FastLED 3.10.6
Loading...
Searching...
No Matches

◆ mapPixels()

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

Definition at line 93 of file xymap.cpp.hpp.

93 {
94 u16 pos = 0;
95 for (u16 y = 0; y < height; y++) {
96 for (u16 x = 0; x < width; x++) {
97 u16 i = pos++;
98 output[i] = input[mapToIndex(x, y)];
99 }
100 }
101}
uint8_t pos
Definition Blur.ino:11
u16 mapToIndex(const u16 &x, const u16 &y) const FL_NO_EXCEPT
u16 width
Definition xymap.h:128
u16 height
Definition xymap.h:129

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

Referenced by operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: