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
}
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
}
fl::Animartrix::current_animation
AnimartrixAnim current_animation
Definition
animartrix.hpp:109
fl::Animartrix::prev_animation
AnimartrixAnim prev_animation
Definition
animartrix.hpp:106
fl::Animartrix::impl
fl::scoped_ptr< FastLEDANIMartRIX > impl
Definition
animartrix.hpp:107
fl::FastLEDANIMartRIX
Definition
animartrix.hpp:126
fl::Fx2d::getHeight
uint16_t getHeight() const
Definition
fx2d.h:23
fl::Fx2d::getWidth
uint16_t getWidth() const
Definition
fx2d.h:24
fl
Generated on Fri Apr 18 2025 03:39:32 for FastLED by
1.13.2