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

◆ AnimartrixLoop()

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

Definition at line 162 of file animartrix.hpp.

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