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

◆ drawAnimartrix()

void drawAnimartrix ( uint32_t now)

Definition at line 748 of file curr.h.

748 {
749 // Update animartrix parameters from UI
750 fxEngine->setSpeed(animartrixTimeSpeed.value());
751
752 // Handle animation index changes
753 static int lastAnimartrixIndex = -1;
754 if (animartrixIndex.value() != lastAnimartrixIndex) {
755 lastAnimartrixIndex = animartrixIndex.value();
756 animartrix->fxSet(animartrixIndex.value());
757 }
758
759 // Draw the animartrix effect directly to the frame buffer
760 CRGB* dst = corkscrew.rawData();
761 fxEngine->draw(now, dst);
762}
fl::unique_ptr< Animartrix > animartrix
Definition curr.h:298
UISlider animartrixTimeSpeed("Animartrix Time Speed", 1, -10, 10,.1)
UINumberField animartrixIndex("Animartrix Animation", 5, 0, NUM_ANIMATIONS - 1)
fl::unique_ptr< FxEngine > fxEngine
Definition curr.h:299
Corkscrew corkscrew(CORKSCREW_TURNS, NUM_LEDS)
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86

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: