17 for (uint16_t w = 0; w <
width; w++) {
18 for (uint16_t h = 0; h <
height; h++) {
43 const uint16_t *lookUpTable,
68 for (uint16_t
x = 0;
x <
width;
x++) {
82 for (uint16_t
x = 0;
x <
width;
x++) {
void set(uint16_t index, const pair_xy_float &p)
XyMapType getType() const
static XYMap constructWithLookUpTable(uint16_t width, uint16_t height, const uint16_t *lookUpTable, uint16_t offset=0)
static XYMap constructSerpentine(uint16_t width, uint16_t height, uint16_t offset=0)
uint16_t getWidth() const
fl::ScreenMap toScreenMap() const
void mapPixels(const CRGB *input, CRGB *output) const
void convertToLookUpTable()
XYMap(uint16_t width, uint16_t height, bool is_serpentine=true, uint16_t offset=0)
uint16_t mapToIndex(uint16_t x, uint16_t y) const
static XYMap constructRectangularGrid(uint16_t width, uint16_t height, uint16_t offset=0)
uint16_t getHeight() const
fl::LUT16Ptr mLookUpTable
void setRectangularGrid()
static XYMap constructWithUserFunction(uint16_t width, uint16_t height, XYFunction xyFunction, uint16_t offset=0)
uint16_t getTotal() const
Implements the FastLED namespace macros.
FASTLED_FORCE_INLINE uint16_t xy_serpentine(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
pair_xy< float > pair_xy_float
FASTLED_FORCE_INLINE uint16_t xy_line_by_line(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
uint16_t(* XYFunction)(uint16_t x, uint16_t y, uint16_t width, uint16_t height)
Implements a simple red square effect for 2D LED grids.
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Representation of an RGB pixel (Red, Green, Blue)