38 const uint16_t *lookUpTable,
64 const uint16_t *
mData =
nullptr;
void convertToLookUpTable()
uint16_t mapToIndex(uint16_t x) const
XMap(uint16_t length, bool is_reverse=false, uint16_t offset=0)
fl::LUT16Ptr mLookUpTable
static XMap constructWithUserFunction(uint16_t length, XFunction xFunction, uint16_t offset=0)
uint16_t getLength() const
uint16_t operator()(uint16_t x) const
static XMap constructWithLookUpTable(uint16_t length, const uint16_t *lookUpTable, uint16_t offset=0)
XMap & operator=(const XMap &other)
UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
#define FASTLED_FORCE_INLINE
Implements the FastLED namespace macros.
uint16_t(* XFunction)(uint16_t x, uint16_t length)
FASTLED_FORCE_INLINE uint16_t x_linear(uint16_t x, uint16_t length)
FASTLED_FORCE_INLINE uint16_t x_reverse(uint16_t x, uint16_t length)
Implements a simple red square effect for 2D LED grids.