15 for (u16 w = 0; w <
width; w++) {
16 for (u16 h = 0; h <
height; h++) {
18 vec2f p = {
static_cast<float>(w),
static_cast<float>(h)};
43 const u16 *lookUpTable,
69 u16* data = lut->getDataMutable();
72 for (u16 i = 0; i <
length; i++) {
76 out.mLookUpTable = lut;
void setSourceXYMap(const fl::shared_ptr< XYMap > &xymap) FL_NOEXCEPT
Set the source XYMap (used for pixel transformation during encoding)
void set(u16 index, const vec2f &p) FL_NOEXCEPT
u16 mapToIndex(u16 x) const
u16 mapToIndex(const u16 &x, const u16 &y) const FL_NOEXCEPT
fl::ScreenMap toScreenMap() const FL_NOEXCEPT
static XYMap constructWithUserFunction(u16 width, u16 height, XYFunction xyFunction, u16 offset=0) FL_NOEXCEPT
u16 getWidth() const FL_NOEXCEPT
u16 getHeight() const FL_NOEXCEPT
void setRectangularGrid() FL_NOEXCEPT
void convertToLookUpTable() FL_NOEXCEPT
static XYMap fromXMap(const XMap &xmap) FL_NOEXCEPT
Create an XYMap from an XMap (treats 1D as 2D with height=1)
static XYMap constructSerpentine(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
void mapPixels(const CRGB *input, CRGB *output) const FL_NOEXCEPT
u16 getTotal() const FL_NOEXCEPT
XyMapType getType() const FL_NOEXCEPT
fl::LUT16Ptr mLookUpTable
static XYMap constructWithLookUpTable(u16 width, u16 height, const u16 *lookUpTable, u16 offset=0) FL_NOEXCEPT
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
XYMap(u16 width, u16 height, bool is_serpentine=true, u16 offset=0) FL_NOEXCEPT
fl::UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
fl::UISlider offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
void * memcpy(void *dest, const void *src, size_t n) FL_NOEXCEPT
FASTLED_FORCE_INLINE u16 xy_line_by_line(u16 x, u16 y, u16 width, u16 height) FL_NOEXCEPT
FASTLED_FORCE_INLINE u16 xy_serpentine(u16 x, u16 y, u16 width, u16 height) FL_NOEXCEPT
u16(* XYFunction)(u16 x, u16 y, u16 width, u16 height)
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Base definition for an LED controller.
Representation of an 8-bit RGB pixel (Red, Green, Blue)