FastLED
3.9.15
Loading...
Searching...
No Matches
◆
mapToIndex()
vec2f
fl::ScreenMap::mapToIndex
(
uint32_t
x
)
const
Definition at line
207
of file
screenmap.cpp
.
207
{
208
if
(
x
>=
length
|| !
mLookUpTable
) {
209
return
{0, 0};
210
}
211
LUTXYFLOAT
&lut = *
mLookUpTable
.get();
212
vec2f
screen_coords = lut[
x
];
213
return
screen_coords;
214
}
x
uint32_t x[NUM_LAYERS]
Definition
Fire2023.ino:82
fl::ScreenMap::length
uint32_t length
Definition
screenmap.h:92
fl::ScreenMap::mLookUpTable
LUTXYFLOATPtr mLookUpTable
Definition
screenmap.h:94
fl::LUTXYFLOAT
LUT< vec2f > LUTXYFLOAT
Definition
lut.h:25
fl::vec2f
vec2< float > vec2f
Definition
geometry.h:318
References
length
,
mLookUpTable
, and
x
.
fl
ScreenMap
Generated on Mon Jun 16 2025 06:27:50 for FastLED by
1.13.2