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

◆ operator[]() [2/2]

const pair_xy_float & fl::ScreenMap::operator[] ( uint32_t x) const

Definition at line 204 of file screenmap.cpp.

204 {
205 if (x >= length || !mLookUpTable) {
206 return empty(); // better than crashing.
207 }
208 LUTXYFLOAT &lut = *mLookUpTable.get();
209 return lut[x];
210}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
static const pair_xy_float & empty()
uint32_t length
Definition screenmap.h:81
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:83
LUT< pair_xy_float > LUTXYFLOAT
Definition lut.h:34

References empty(), length, mLookUpTable, and x.

+ Here is the call graph for this function: