2019-09-25 16:11:03 +00:00
|
|
|
#pragma once
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
class TwirlEffect : public Effect {
|
2019-06-07 04:24:16 +00:00
|
|
|
private:
|
2019-05-29 22:49:54 +00:00
|
|
|
uint8_t angleOffset = 0;
|
2019-09-04 04:01:08 +00:00
|
|
|
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:
|
2019-05-29 22:49:54 +00:00
|
|
|
void loop();
|
2019-09-25 04:33:26 +00:00
|
|
|
boolean can_be_shown_with_clock() override;
|
|
|
|
boolean clock_as_mask() override;
|
2019-09-25 16:11:03 +00:00
|
|
|
String get_name() override { return "twirl"; }
|
2019-05-29 22:49:54 +00:00
|
|
|
};
|
|
|
|
|