Fabian Schlenz
382631d7d7
the effects to show animations that stay fluid independent of the current frame rate.
24 lines
387 B
C++
24 lines
387 B
C++
#pragma once
|
|
#include "Effect.h"
|
|
|
|
class GolEffect : public Effect {
|
|
private:
|
|
uint8_t *_data;
|
|
uint8_t *_old;
|
|
uint8_t _blend;
|
|
uint8_t _hue = 0;
|
|
uint8_t _old_hue = 0;
|
|
uint16_t _step;
|
|
|
|
void _advance();
|
|
void _draw();
|
|
void _initialize();
|
|
|
|
public:
|
|
GolEffect();
|
|
~GolEffect();
|
|
void loop(uint16_t ms);
|
|
bool can_be_shown_with_clock();
|
|
String get_name() override { return "gol"; }
|
|
};
|