FastLED 3.9.15
Loading...
Searching...
No Matches

◆ draw() [2/2]

template<typename XYVisitor>
void fl::XYRasterU8Sparse::draw ( const XYMap & xymap,
XYVisitor & visitor )
inline

Definition at line 153 of file raster_sparse.h.

153 {
154 for (const auto &it : mSparseGrid) {
155 auto pt = it.first;
156 if (!xymap.has(pt.x, pt.y)) {
157 continue;
158 }
159 uint32_t index = xymap(pt.x, pt.y);
160 uint8_t value = it.second;
161 if (value > 0) { // Something wrote here.
162 visitor.draw(pt, index, value);
163 }
164 }
165 }
XYMap xymap(WIDTH, HEIGHT, SERPENTINE)
HashMapLarge mSparseGrid

References mSparseGrid, and xymap.