FastLED 3.9.7
Loading...
Searching...
No Matches
fl::XYMap Class Reference

Detailed Description

Examples
FxEngine.ino.

Definition at line 38 of file xymap.h.

Public Types

enum  XyMapType { kSerpentine = 0 , kLineByLine , kFunction , kLookUpTable }
 

Public Member Functions

 XYMap (uint16_t width, uint16_t height, bool is_serpentine=true, uint16_t offset=0)
 
 XYMap (const XYMap &other)=default
 
fl::ScreenMap toScreenMap () const
 
void mapPixels (const CRGB *input, CRGB *output) const
 
void convertToLookUpTable ()
 
void setRectangularGrid ()
 
uint16_t operator() (uint16_t x, uint16_t y) const
 
uint16_t mapToIndex (uint16_t x, uint16_t y) const
 
uint16_t getWidth () const
 
uint16_t getHeight () const
 
uint16_t getTotal () const
 
XyMapType getType () const
 

Static Public Member Functions

static XYMap constructWithUserFunction (uint16_t width, uint16_t height, XYFunction xyFunction, uint16_t offset=0)
 
static XYMap constructRectangularGrid (uint16_t width, uint16_t height, uint16_t offset=0)
 
static XYMap constructWithLookUpTable (uint16_t width, uint16_t height, const uint16_t *lookUpTable, uint16_t offset=0)
 

Member Enumeration Documentation

◆ XyMapType

enum fl::XYMap::XyMapType

Definition at line 40 of file xymap.h.

Constructor & Destructor Documentation

◆ XYMap()

fl::XYMap::XYMap ( uint16_t width,
uint16_t height,
bool is_serpentine = true,
uint16_t offset = 0 )

Definition at line 63 of file xymap.cpp.

Member Function Documentation

◆ constructRectangularGrid()

XYMap fl::XYMap::constructRectangularGrid ( uint16_t width,
uint16_t height,
uint16_t offset = 0 )
static

Definition at line 43 of file xymap.cpp.

◆ constructWithLookUpTable()

XYMap fl::XYMap::constructWithLookUpTable ( uint16_t width,
uint16_t height,
const uint16_t * lookUpTable,
uint16_t offset = 0 )
static

Definition at line 51 of file xymap.cpp.

◆ constructWithUserFunction()

XYMap fl::XYMap::constructWithUserFunction ( uint16_t width,
uint16_t height,
XYFunction xyFunction,
uint16_t offset = 0 )
static

Definition at line 33 of file xymap.cpp.

◆ convertToLookUpTable()

void fl::XYMap::convertToLookUpTable ( )

Definition at line 81 of file xymap.cpp.

◆ getHeight()

uint16_t fl::XYMap::getHeight ( ) const

Definition at line 137 of file xymap.cpp.

◆ getTotal()

uint16_t fl::XYMap::getTotal ( ) const

Definition at line 141 of file xymap.cpp.

◆ getType()

XYMap::XyMapType fl::XYMap::getType ( ) const

Definition at line 145 of file xymap.cpp.

◆ getWidth()

uint16_t fl::XYMap::getWidth ( ) const

Definition at line 133 of file xymap.cpp.

◆ mapPixels()

void fl::XYMap::mapPixels ( const CRGB * input,
CRGB * output ) const

Definition at line 69 of file xymap.cpp.

◆ mapToIndex()

uint16_t fl::XYMap::mapToIndex ( uint16_t x,
uint16_t y ) const

Definition at line 106 of file xymap.cpp.

◆ operator()()

uint16_t fl::XYMap::operator() ( uint16_t x,
uint16_t y ) const
inline

Definition at line 68 of file xymap.h.

◆ setRectangularGrid()

void fl::XYMap::setRectangularGrid ( )

Definition at line 98 of file xymap.cpp.

◆ toScreenMap()

ScreenMap fl::XYMap::toScreenMap ( ) const

Definition at line 15 of file xymap.cpp.


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