16 for (u16 w = 0; w <
width; w++) {
17 for (u16 h = 0; h <
height; h++) {
19 vec2f p = {
static_cast<float>(w),
static_cast<float>(h)};
42 const u16 *lookUpTable,
void set(u16 index, const vec2f &p)
XyMapType getType() const
static XYMap constructWithUserFunction(u16 width, u16 height, XYFunction xyFunction, u16 offset=0)
fl::ScreenMap toScreenMap() const
static XYMap constructSerpentine(u16 width, u16 height, u16 offset=0)
void mapPixels(const CRGB *input, CRGB *output) const
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0)
void convertToLookUpTable()
static XYMap constructWithLookUpTable(u16 width, u16 height, const u16 *lookUpTable, u16 offset=0)
u16 mapToIndex(const u16 &x, const u16 &y) const
XYMap(u16 width, u16 height, bool is_serpentine=true, u16 offset=0)
fl::LUT16Ptr mLookUpTable
void setRectangularGrid()
UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
Implements the FastLED namespace macros.
FASTLED_FORCE_INLINE u16 xy_line_by_line(u16 x, u16 y, u16 width, u16 height)
u16(* XYFunction)(u16 x, u16 y, u16 width, u16 height)
shared_ptr< T > make_shared(Args &&... args)
FASTLED_FORCE_INLINE u16 xy_serpentine(u16 x, u16 y, u16 width, u16 height)
Representation of an RGB pixel (Red, Green, Blue)