If the code hasn't been touched in this long, its probably release-worthy.
This commit is contained in:
21
src/animations/SolidAnimation.h
Normal file
21
src/animations/SolidAnimation.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include <Figments.h>
|
||||
#include "../sprites/Blob.h"
|
||||
|
||||
class SolidAnimation: public Figment {
|
||||
private:
|
||||
AnimatedNumber m_red, m_green, m_blue, m_changePct;
|
||||
CRGB m_curColor;
|
||||
CRGB m_prevColor;
|
||||
static constexpr int blobCount = 20;
|
||||
SpriteList<Blob, blobCount> m_blobs;
|
||||
void randomize();
|
||||
bool m_isRandom = false;
|
||||
bool m_horizontal = false;
|
||||
|
||||
public:
|
||||
SolidAnimation();
|
||||
void handleEvent(const InputEvent& evt) override;
|
||||
void loop() override;
|
||||
void render(Display* dpy) const override;
|
||||
};
|
Reference in New Issue
Block a user