FastLED
3.9.15
Loading...
Searching...
No Matches
◆
mapToIndex()
vec2f
fl::ScreenMap::mapToIndex
(
uint32_t
x
)
const
Definition at line
200
of file
screenmap.cpp
.
200
{
201
if
(
x
>=
length
|| !
mLookUpTable
) {
202
return
{0, 0};
203
}
204
LUTXYFLOAT
&lut = *
mLookUpTable
.get();
205
vec2f
screen_coords = lut[
x
];
206
return
screen_coords;
207
}
x
int x
Definition
Audio.ino:71
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:301
References
length
,
mLookUpTable
, and
x
.
fl
ScreenMap
Generated on Wed May 28 2025 07:26:24 for FastLED by
1.13.2