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

◆ AnimartrixLoop

void AnimartrixLoop ( Animartrix & self,
uint32_t now )
friend

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 }
161 self.prev_animation = self.current_animation;
162 }
163 if (!self.impl) {
164 self.impl.reset(new FastLEDANIMartRIX(&self));
165 }
166 self.impl->setTime(now);
167 self.impl->loop();
168}
friend class FastLEDANIMartRIX

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

Referenced by draw().