pitrix/include/effect_twirl.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

19 lines
432 B
C++

#pragma once
#include "Effect.h"
#include <Arduino.h>
class TwirlEffect : public Effect {
private:
uint8_t angleOffset = 0;
uint8_t _center_offset_angle = 0;
double _real_center_x = LED_WIDTH / 2;
double _real_center_y = LED_HEIGHT / 2;
public:
void loop(uint16_t ms);
boolean can_be_shown_with_clock() override;
boolean clock_as_mask() override;
String get_name() override { return "twirl"; }
};