16 const u16 *lookUpTable,
19 out.
mData = lookUpTable;
void convertToLookUpTable()
u16 mapToIndex(u16 x) const
static XMap constructWithLookUpTable(u16 length, const u16 *lookUpTable, u16 offset=0)
fl::LUT16Ptr mLookUpTable
XMap(u16 length, bool is_reverse=false, u16 offset=0)
static XMap constructWithUserFunction(u16 length, XFunction xFunction, u16 offset=0)
XMap & operator=(const XMap &other)
UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
FASTLED_FORCE_INLINE u16 x_linear(u16 x, u16 length)
FASTLED_FORCE_INLINE u16 x_reverse(u16 x, u16 length)
shared_ptr< T > make_shared(Args &&... args)
u16(* XFunction)(u16 x, u16 length)