pitrix/include/effects/blur2d.h

33 lines
586 B
C
Raw Normal View History

2019-09-25 04:26:27 +00:00
#pragma once
#include "prototypes.h"
#include "functions.h"
#include "Effect.h"
class Blur2DBlob {
private:
accum88 _x_freq;
accum88 _y_freq;
uint8_t _color_freq;
public:
Blur2DBlob();
void render(Window* win);
};
2019-09-25 04:26:27 +00:00
class Blur2DEffect : public Effect {
private:
Window* window = &Window::window_with_clock;
uint8_t _count;
Blur2DBlob* _blobs;
2019-09-25 04:26:27 +00:00
public:
Blur2DEffect();
2019-09-25 04:26:27 +00:00
~Blur2DEffect();
void _init();
void _delete();
2019-09-25 04:26:27 +00:00
boolean supports_window = true;
boolean can_be_shown_with_clock();
void loop(uint16_t ms);
String get_name() override { return "blur2d"; }
2019-09-25 04:26:27 +00:00
};