FastLED 3.9.15
Loading...
Searching...
No Matches
fl::XMap Class Reference

Detailed Description

Definition at line 28 of file xmap.h.

#include <xmap.h>

Public Types

enum  Type { kLinear = 0 , kReverse , kFunction , kLookUpTable }
 

Public Member Functions

 XMap (const XMap &other)
 
 XMap (u16 length, bool is_reverse=false, u16 offset=0)
 
void convertToLookUpTable ()
 
u16 getLength () const
 
Type getType () const
 
u16 mapToIndex (u16 x) const
 
u16 operator() (u16 x) const
 
XMapoperator= (const XMap &other)
 

Static Public Member Functions

static XMap constructWithLookUpTable (u16 length, const u16 *lookUpTable, u16 offset=0)
 
static XMap constructWithUserFunction (u16 length, XFunction xFunction, u16 offset=0)
 

Private Member Functions

 XMap (u16 length, Type type)
 

Private Attributes

u16 length = 0
 
const u16 * mData = nullptr
 
fl::LUT16Ptr mLookUpTable
 
u16 mOffset = 0
 
Type type = kLinear
 
XFunction xFunction = nullptr
 

The documentation for this class was generated from the following files: