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

◆ draw() [2/3]

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

Definition at line 327 of file raster_sparse.h.

327 {
328 for (const auto &it : mSparseGrid) {
329 auto pt = it.first;
330 if (!xymap.has(pt.x, pt.y)) {
331 continue;
332 }
333 u32 index = xymap(pt.x, pt.y);
334 const CRGB &color = it.second;
335 // Only draw non-black pixels (since black represents "no data")
336 if (color.r != 0 || color.g != 0 || color.b != 0) {
337 visitor.draw(pt, index, color);
338 }
339 }
340 }
XYMap xymap
fl::CRGB CRGB
Definition video.h:15

References mSparseGrid, and xymap.