FastLED 3.9.15
|
#include <xmap.h>
Public Types | |
enum | Type { kLinear = 0 , kReverse , kFunction , kLookUpTable } |
Public Member Functions | |
XMap (const XMap &other) | |
XMap (uint16_t length, bool is_reverse=false, uint16_t offset=0) | |
void | convertToLookUpTable () |
uint16_t | getLength () const |
Type | getType () const |
uint16_t | mapToIndex (uint16_t x) const |
uint16_t | operator() (uint16_t x) const |
XMap & | operator= (const XMap &other) |
Static Public Member Functions | |
static XMap | constructWithLookUpTable (uint16_t length, const uint16_t *lookUpTable, uint16_t offset=0) |
static XMap | constructWithUserFunction (uint16_t length, XFunction xFunction, uint16_t offset=0) |
Private Member Functions | |
XMap (uint16_t length, Type type) | |
Private Attributes | |
uint16_t | length = 0 |
const uint16_t * | mData = nullptr |
fl::LUT16Ptr | mLookUpTable |
uint16_t | mOffset = 0 |
Type | type = kLinear |
XFunction | xFunction = nullptr |