MCPcopy Create free account
hub / github.com/FastLED/FastLED / at

Method at

src/fl/gfx/raster_sparse.h:271–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269 bool empty() const { return mSparseGrid.empty(); }
270
271 pair<bool, CRGB> at(u16 x, u16 y) const {
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 }
278
279 rect<u16> bounds() const {
280 if (mAbsoluteBoundsSet) {

Callers

nothing calls this directly

Calls 1

find_valueMethod · 0.80

Tested by

no test coverage detected