FastLED
3.9.15
Loading...
Searching...
No Matches
◆
draw()
[3/3]
template<typename XYVisitor>
void fl::XYRasterU8Sparse::draw
(
const
XYMap
&
xymap
,
XYVisitor &
visitor
)
inline
Definition at line
159
of file
raster_sparse.h
.
159
{
160
for
(
const
auto
&it :
mSparseGrid
) {
161
auto
pt = it.first;
162
if
(!
xymap
.
has
(pt.x, pt.y)) {
163
continue
;
164
}
165
u32 index =
xymap
(pt.x, pt.y);
166
u8
value = it.second;
167
if
(value > 0) {
// Something wrote here.
168
visitor.draw(pt, index, value);
169
}
170
}
171
}
xymap
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
XYMap::has
bool has(u16 x, u16 y) const
Definition
xymap.h:101
fl::XYRasterU8Sparse::mSparseGrid
HashMapLarge mSparseGrid
Definition
raster_sparse.h:223
fl::u8
unsigned char u8
Definition
int.h:17
References
mSparseGrid
, and
xymap
.
fl
XYRasterU8Sparse
Generated on Sat Sep 20 2025 20:42:24 for FastLED by
1.13.2