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

◆ drawAnimartrix()

void drawAnimartrix ( uint32_t now)

Definition at line 739 of file curr.h.

739 {
740 // Update animartrix parameters from UI
741 fxEngine->setSpeed(animartrixTimeSpeed.value());
742
743 // Handle animation index changes
744 static int lastAnimartrixIndex = -1; // okay static in header
745 if (animartrixIndex.value() != lastAnimartrixIndex) {
746 lastAnimartrixIndex = animartrixIndex.value();
747 animartrix->fxSet(animartrixIndex.value());
748 }
749
750 // Draw the animartrix effect directly to the frame buffer
751 fxEngine->draw(now, corkscrew.data());
752}
fl::FxEngine fxEngine(NUM_LEDS)
fl::Animartrix animartrix(xyMap, FIRST_ANIMATION)
UINumberField animartrixIndex("fl::Animartrix Animation", 5, 0, static_cast< int >(fl::AnimartrixAnim::NUM_ANIMATIONS) - 1)
fl::UISlider animartrixTimeSpeed("fl::Animartrix Time Speed", 1, -10, 10,.1)
fl::Corkscrew corkscrew(CORKSCREW_TURNS, NUM_LEDS)

References animartrix, animartrixIndex(), animartrixTimeSpeed(), corkscrew(), and fxEngine.

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: