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

◆ mapPixels()

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

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

85 {
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}
uint8_t pos
Definition Blur.ino:11
u16 mapToIndex(const u16 &x, const u16 &y) const FL_NOEXCEPT
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: