FastLED
3.9.15
Loading...
Searching...
No Matches
◆
convertToLookUpTable()
void fl::XYMap::convertToLookUpTable
(
)
Definition at line
76
of file
xymap.cpp
.
76
{
77
if
(
type
==
kLookUpTable
) {
78
return
;
79
}
80
mLookUpTable
= LUT16Ptr::New(
width
*
height
);
81
uint16_t *data =
mLookUpTable
->getDataMutable();
82
for
(uint16_t
y
= 0;
y
<
height
;
y
++) {
83
for
(uint16_t
x
= 0;
x
<
width
;
x
++) {
84
data[
y
*
width
+
x
] =
mapToIndex
(
x
,
y
);
85
}
86
}
87
type
=
kLookUpTable
;
88
xyFunction
=
nullptr
;
89
}
x
uint32_t x[NUM_LAYERS]
Definition
Fire2023.ino:82
y
uint32_t y[NUM_LAYERS]
Definition
Fire2023.ino:83
XYMap::xyFunction
XYFunction xyFunction
Definition
xymap.h:123
XYMap::width
uint16_t width
Definition
xymap.h:121
XYMap::kLookUpTable
@ kLookUpTable
Definition
xymap.h:45
XYMap::height
uint16_t height
Definition
xymap.h:122
XYMap::mLookUpTable
fl::LUT16Ptr mLookUpTable
Definition
xymap.h:124
XYMap::type
XyMapType type
Definition
xymap.h:120
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