Effect#loop now gets the time since the last run of the loop in ms. This enables

the effects to show animations that stay fluid independent of the current frame rate.
This commit is contained in:
2019-10-01 06:29:32 +02:00
parent 096d13438a
commit 382631d7d7
44 changed files with 78 additions and 67 deletions

View File

@ -27,9 +27,9 @@ public:
MatrixEffectColumn(Window* win, uint8_t direction=0, bool random_direction=false);
virtual ~MatrixEffectColumn() {};
void advance();
void advance(uint16_t ms);
void draw();
void loop();
void loop(uint16_t ms);
};
class RainbowMatrixEffectColumn : public MatrixEffectColumn {
@ -55,7 +55,7 @@ public:
boolean can_be_shown_with_clock();
MatrixEffect();
virtual ~MatrixEffect();
void loop();
void loop(uint16_t ms);
String get_name() override { return "matrix"; }
};