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

◆ AnimartrixLoop()

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

Definition at line 155 of file animartrix.hpp.

155 {
156 if (self.prev_animation != self.current_animation) {
157 if (self.impl) {
158 // Re-initialize object.
159 self.impl->init(self.getWidth(), self.getHeight());
160 }
162 }
163 if (!self.impl) {
164 self.impl.reset(new FastLEDANIMartRIX(&self));
165 }
166 self.impl->setTime(now);
167 self.impl->loop();
168}
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