FastLED
3.9.15
Loading...
Searching...
No Matches
◆
mapToIndex()
pair_xy_float
fl::ScreenMap::mapToIndex
(
uint32_t
x
)
const
Definition at line
186
of file
screenmap.cpp
.
186
{
187
if
(
x
>=
length
|| !
mLookUpTable
) {
188
return
{0, 0};
189
}
190
LUTXYFLOAT
&lut = *
mLookUpTable
.get();
191
pair_xy_float
screen_coords = lut[
x
];
192
return
screen_coords;
193
}
x
uint32_t x[NUM_LAYERS]
Definition
Fire2023.ino:80
fl::ScreenMap::length
uint32_t length
Definition
screenmap.h:81
fl::ScreenMap::mLookUpTable
LUTXYFLOATPtr mLookUpTable
Definition
screenmap.h:83
fl::pair_xy_float
pair_xy< float > pair_xy_float
Definition
lut.h:24
fl::LUTXYFLOAT
LUT< pair_xy_float > LUTXYFLOAT
Definition
lut.h:34
References
length
,
mLookUpTable
, and
x
.
fl
ScreenMap
Generated on Fri Apr 18 2025 03:39:32 for FastLED by
1.13.2