FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ operator[]() [2/2]

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

Definition at line 254 of file screenmap.cpp.

254 {
255 if (x >= length || !mLookUpTable) {
256 return empty(); // better than crashing.
257 }
258 LUTXYFLOAT &lut = *mLookUpTable.get();
259 return lut[x];
260}
int x
Definition Audio.ino:71
uint32_t length
Definition screenmap.h:92
static const vec2f & empty()
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:94
LUT< vec2f > LUTXYFLOAT
Definition lut.h:25

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

+ Here is the call graph for this function: