57 const u16 *lookUpTable,
94 template <
typename IntType,
107 return (
x >= 0) && (
y >= 0) &&
has((u16)
x, (u16)
y);
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
bool has(u16 x, u16 y) const FL_NOEXCEPT
void setRectangularGrid() FL_NOEXCEPT
u16 mapToIndex(IntType x, IntType y) const FL_NOEXCEPT
void convertToLookUpTable() FL_NOEXCEPT
bool isFunction() const FL_NOEXCEPT
bool isLineByLine() const FL_NOEXCEPT
bool isSerpentine() const FL_NOEXCEPT
bool has(int x, int y) const FL_NOEXCEPT
static XYMap fromXMap(const XMap &xmap) FL_NOEXCEPT
Create an XYMap from an XMap (treats 1D as 2D with height=1)
bool isRectangularGrid() const FL_NOEXCEPT
static XYMap identity(u16 width, u16 height) FL_NOEXCEPT
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
bool isSerpentineOrLineByLine() const FL_NOEXCEPT
bool isLUT() 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 offset("Offset", 0.0f, 0.0f, 1.0f, 0.01f)
typename enable_if< Condition, T >::type enable_if_t
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)
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NOEXCEPT
Base definition for an LED controller.
#define FASTLED_FORCE_INLINE
Representation of an 8-bit RGB pixel (Red, Green, Blue)