19#define ANIMARTRIX_INTERNAL
83class FastLEDANIMartRIX;
89 mXyMap.convertToLookUpTable();
142 uint16_t
xyMap(uint16_t
x, uint16_t
y)
override {
142 uint16_t
xyMap(uint16_t
x, uint16_t
y)
override {
…}
173 self.
impl->setTime(now);
233 if (entry.anim ==
data->current_animation) {
234 (this->*entry.func)();
239 FASTLED_DBG(
"Animation not found for " <<
int(
data->current_animation));
244 if (entry.anim == animation) {
248 FASTLED_DBG(
"Animation not found for " <<
int(animation));
255 this->
leds =
nullptr;
XYMap xyMap(HEIGHT, WIDTH, SERPENTINE)
void Module_Experiment1()
void Module_Experiment4()
void Module_Experiment9()
void Module_Experiment8()
void Module_Experiment2()
void Module_Experiment10()
void Module_Experiment7()
void Module_Experiment5()
void Module_Experiment3()
void Distance_Experiment()
void Module_Experiment6()
Animartrix(const Animartrix &)=delete
void draw(DrawContext context) override
friend void AnimartrixLoop(Animartrix &self, uint32_t now)
Animartrix(XYMap xyMap, AnimartrixAnim which_animation)
Str fxName() const override
AnimartrixAnim current_animation
friend class FastLEDANIMartRIX
AnimartrixAnim prev_animation
fl::scoped_ptr< FastLEDANIMartRIX > impl
static const char * getAnimationName(AnimartrixAnim animation)
void setPixelColor(int x, int y, CRGB pixel)
uint16_t xyMap(uint16_t x, uint16_t y) override
FastLEDANIMartRIX(Animartrix *_data)
void setPixelColorInternal(int x, int y, animartrix_detail::rgb pixel) override
uint16_t xyMap(uint16_t x, uint16_t y) const
uint16_t getHeight() const
uint16_t getWidth() const
Defines the red, green, and blue (RGB) pixel struct.
#define FASTLED_SMART_PTR(type)
Implements the FastLED namespace macros.
static const AnimartrixEntry ANIMATION_TABLE[]
void AnimartrixLoop(Animartrix &self, uint32_t now)
Implements a simple red square effect for 2D LED grids.
void(FastLEDANIMartRIX::* func)()
################################################## Details with the implementation of Animartrix
Representation of an RGB pixel (Red, Green, Blue)