FastLED
3.9.15
Loading...
Searching...
No Matches
◆
mapPixels()
void fl::XYMap::mapPixels
(
const
CRGB
*
input
,
CRGB
*
output
) const
Definition at line
66
of file
xymap.cpp
.
66
{
67
uint16_t
pos
= 0;
68
for
(uint16_t
y
= 0;
y
<
height
;
y
++) {
69
for
(uint16_t
x
= 0;
x
<
width
;
x
++) {
70
uint16_t i =
pos
++;
71
output[i] = input[
mapToIndex
(
x
,
y
)];
72
}
73
}
74
}
pos
uint8_t pos
Definition
Blur.ino:11
x
uint32_t x[NUM_LAYERS]
Definition
Fire2023.ino:82
y
uint32_t y[NUM_LAYERS]
Definition
Fire2023.ino:83
XYMap::width
uint16_t width
Definition
xymap.h:121
XYMap::height
uint16_t height
Definition
xymap.h:122
fl::XYMap::mapToIndex
uint16_t mapToIndex(const uint16_t &x, const uint16_t &y) const
Definition
xymap.cpp:97
XYMap
Generated on Sat May 24 2025 22:44:24 for FastLED by
1.13.2