FastLED 3.10.8
Loading...
Searching...
No Matches

◆ mapPixels()

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

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

94 {
95 u16 pos = 0;
96 for (u16 y = 0; y < height; y++) {
97 for (u16 x = 0; x < width; x++) {
98 u16 i = pos++;
99 output[i] = input[mapToIndex(x, y)];
100 }
101 }
102}
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 fl::FL_NO_EXCEPT, 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: