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

◆ draw() [1/3]

void fl::XYRasterSparse_RGB8::draw ( const XYMap & xymap,
fl::span< CRGB > out )

Definition at line 70 of file raster_sparse.cpp.hpp.

70 {
71 for (const auto &it : mSparseGrid) {
72 auto pt = it.first;
73 if (!xymap.has(pt.x, pt.y)) {
74 continue;
75 }
76 u32 index = xymap(pt.x, pt.y);
77 const CRGB &color = it.second;
78 // Only draw non-black pixels (since black represents "no data")
79 if (color.r != 0 || color.g != 0 || color.b != 0) {
80 out[index] = color;
81 }
82 }
83}
XYMap xymap
fl::CRGB CRGB
Definition video.h:15

References mSparseGrid, and xymap.