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
}
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
}
fl::Animartrix::current_animation
AnimartrixAnim current_animation
Definition
animartrix.hpp:104
fl::Animartrix::prev_animation
AnimartrixAnim prev_animation
Definition
animartrix.hpp:101
fl::Animartrix::impl
fl::scoped_ptr< FastLEDANIMartRIX > impl
Definition
animartrix.hpp:102
fl::FastLEDANIMartRIX
Definition
animartrix.hpp:118
fl::Fx2d::getHeight
uint16_t getHeight() const
Definition
fx2d.h:24
fl::Fx2d::getWidth
uint16_t getWidth() const
Definition
fx2d.h:25
fl
Generated on Thu May 29 2025 04:44:58 for FastLED by
1.13.2