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

◆ at()

pair< bool, CRGB > fl::XYRasterSparse_RGB8::at ( u16 x,
u16 y ) const
inline

Definition at line 271 of file raster_sparse.h.

271 {
272 const CRGB *val = mSparseGrid.find_value(vec2<u16>(x, y));
273 if (val != nullptr) {
274 return {true, *val};
275 }
276 return {false, CRGB::Black};
277 }
fl::CRGB CRGB
Definition video.h:15
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:510

References fl::CRGB::Black, mSparseGrid, fl::x, and fl::y.