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 150 of file raster_sparse.h.

150 {
151 for (const auto &it : mSparseGrid) {
152 auto pt = it.first;
153 if (!xymap.has(pt.x, pt.y)) {
154 continue;
155 }
156 u32 index = xymap(pt.x, pt.y);
157 u8 value = it.second;
158 if (value > 0) { // Something wrote here.
159 visitor.draw(pt, index, value);
160 }
161 }
162 }
XYMap xymap
HashMapLarge mSparseGrid
unsigned char u8
Definition stdint.h:131
constexpr int type_rank< T >::value

References mSparseGrid, fl::type_rank< T >::value, and xymap.