FastLED
3.9.15
Loading...
Searching...
No Matches
◆
toScreenMap()
ScreenMap
fl::XYMap::toScreenMap
(
)
const
Definition at line
15
of file
xymap.cpp
.
15
{
16
const
uint16_t
length
=
width
*
height
;
17
ScreenMap out(
length
);
18
for
(uint16_t w = 0; w <
width
; w++) {
19
for
(uint16_t h = 0; h <
height
; h++) {
20
uint16_t index =
mapToIndex
(w, h);
21
vec2f
p
= {
static_cast<
float
>
(w),
static_cast<
float
>
(h)};
22
out.set(index,
p
);
23
}
24
}
25
return
out;
26
}
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
length
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
fl::vec2f
vec2< float > vec2f
Definition
geometry.h:318
p
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition
noise.cpp:30
XYMap
Generated on Mon Jun 16 2025 06:27:49 for FastLED by
1.13.2