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

◆ operator[]() [2/2]

const vec2f & fl::ScreenMap::operator[] ( u32 x) const

Definition at line 402 of file screenmap.cpp.

402 {
403 if (x >= length || !mLookUpTable) {
404 return empty(); // better than crashing.
405 }
406 LUTXYFLOAT &lut = *mLookUpTable.get();
407 return lut[x];
408}
int x
Definition simple.h:92
static const vec2f & empty()
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:103
LUT< vec2f > LUTXYFLOAT
Definition lut.h:26

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

+ Here is the call graph for this function: