FastLED 3.10.6
Loading...
Searching...
No Matches

◆ operator[]() [1/2]

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

Definition at line 690 of file screenmap.cpp.hpp.

690 {
691 if (x >= length || !mLookUpTable) {
692 return empty(); // better than crashing.
693 }
694 LUTXYFLOAT &lut = *mLookUpTable.get();
695 return lut[x];
696}
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:143
static const vec2f & empty() FL_NO_EXCEPT
LUT< vec2f > LUTXYFLOAT
Definition lut.h:26

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

+ Here is the call graph for this function: