Effect swirl is now shown with clock.
This commit is contained in:
parent
b8f39410c9
commit
1cd94ac4ae
@ -12,6 +12,8 @@ private:
|
|||||||
double _real_center_y = LED_HEIGHT / 2;
|
double _real_center_y = LED_HEIGHT / 2;
|
||||||
public:
|
public:
|
||||||
void loop();
|
void loop();
|
||||||
|
boolean can_be_shown_with_clock() override;
|
||||||
|
boolean clock_as_mask() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#include "effect_twirl.h"
|
#include "effect_twirl.h"
|
||||||
#include "functions.h"
|
#include "functions.h"
|
||||||
|
|
||||||
|
boolean TwirlEffect::can_be_shown_with_clock() { return true; };
|
||||||
|
boolean TwirlEffect::clock_as_mask() { return true; };
|
||||||
|
|
||||||
void TwirlEffect::loop() {
|
void TwirlEffect::loop() {
|
||||||
double center_x = _real_center_x; // - (cos8(_center_offset_angle)>>6);
|
double center_x = _real_center_x; // - (cos8(_center_offset_angle)>>6);
|
||||||
double center_y = _real_center_y; // + (sin8(_center_offset_angle)>>6);
|
double center_y = _real_center_y; // + (sin8(_center_offset_angle)>>6);
|
||||||
|
Loading…
Reference in New Issue
Block a user