FastLED 3.9.15
Loading...
Searching...
No Matches

◆ AnimartrixLoop()

void fl::AnimartrixLoop ( Animartrix & self,
uint32_t now )

Definition at line 160 of file animartrix.hpp.

160 {
161 if (self.prev_animation != self.current_animation) {
162 if (self.impl) {
163 // Re-initialize object.
164 self.impl->init(self.getWidth(), self.getHeight());
165 }
167 }
168 if (!self.impl) {
169 self.impl.reset(new FastLEDANIMartRIX(&self));
170 }
171 self.impl->setTime(now);
172 self.impl->loop();
173}
AnimartrixAnim current_animation
AnimartrixAnim prev_animation
fl::scoped_ptr< FastLEDANIMartRIX > impl
uint16_t getHeight() const
Definition fx2d.h:24
uint16_t getWidth() const
Definition fx2d.h:25