pitrix/include/effect_gol.h
Fabian Schlenz 382631d7d7 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.
2019-10-01 06:29:32 +02:00

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"; }
};