pitrix/include/effect_twirl.h

19 lines
421 B
C
Raw Normal View History

#pragma once
#include "Effect.h"
#include <Arduino.h>
class TwirlEffect : public Effect {
2019-06-07 04:24:16 +00:00
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;
2019-06-07 04:24:16 +00:00
public:
void loop();
2019-09-25 04:33:26 +00:00
boolean can_be_shown_with_clock() override;
boolean clock_as_mask() override;
String get_name() override { return "twirl"; }
};