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

◆ operator[]() [1/2]

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

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

561 {
562 if (x >= length || !mLookUpTable) {
563 return empty(); // better than crashing.
564 }
565 LUTXYFLOAT &lut = *mLookUpTable.get();
566 return lut[x];
567}
static const vec2f & empty() FL_NOEXCEPT
LUTXYFLOATPtr mLookUpTable
Definition screenmap.h:126
LUT< vec2f > LUTXYFLOAT
Definition lut.h:26

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

+ Here is the call graph for this function: