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

◆ AnimartrixLoop

void AnimartrixLoop ( Animartrix & self,
uint32_t now )
friend

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 }
168 self.prev_animation = self.current_animation;
169 }
170 if (!self.impl) {
171 self.impl.reset(new FastLEDANIMartRIX(&self));
172 }
173 self.impl->setTime(now);
174 self.impl->loop();
175}
friend class FastLEDANIMartRIX

References Animartrix(), current_animation, FastLEDANIMartRIX, fl::Fx2d::getHeight(), fl::Fx2d::getWidth(), impl, and prev_animation.

Referenced by draw().