38 const u16 *lookUpTable,
void convertToLookUpTable()
u16 mapToIndex(u16 x) const
static XMap constructWithLookUpTable(u16 length, const u16 *lookUpTable, u16 offset=0)
fl::LUT16Ptr mLookUpTable
u16 operator()(u16 x) const
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)
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
#define FASTLED_FORCE_INLINE
Implements the FastLED namespace macros.
FASTLED_FORCE_INLINE u16 x_linear(u16 x, u16 length)
FASTLED_FORCE_INLINE u16 x_reverse(u16 x, u16 length)
u16(* XFunction)(u16 x, u16 length)