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(WIDTH, HEIGHT, SERPENTINE)
HashMapLarge mSparseGrid
unsigned char u8
Definition int.h:17

References mSparseGrid, and xymap.