Effect Matrix * Better colors
This commit is contained in:
@ -48,6 +48,15 @@ public:
|
||||
RandomMatrixEffectColumn(Window* win, uint8_t dir, bool rnd=false) : MatrixEffectColumn(win, dir, rnd) {};
|
||||
};
|
||||
|
||||
class ColumnMatrixEffectColumn : public MatrixEffectColumn {
|
||||
protected:
|
||||
uint8_t _hue;
|
||||
CRGB _getColor(uint8_t height) override;
|
||||
void restart(bool completely_random) override;
|
||||
public:
|
||||
ColumnMatrixEffectColumn(Window* win, uint8_t dir, bool rnd=false) : MatrixEffectColumn(win, dir, rnd) {};
|
||||
};
|
||||
|
||||
class MatrixEffectBase : public Effect {
|
||||
protected:
|
||||
MatrixEffectColumn** _columns;
|
||||
@ -86,3 +95,11 @@ public:
|
||||
RandomMatrixEffect();
|
||||
String get_name() override { return "random_matrix"; }
|
||||
};
|
||||
|
||||
class ColumnMatrixEffect : public MatrixEffectBase {
|
||||
protected:
|
||||
void _create() override;
|
||||
public:
|
||||
ColumnMatrixEffect();
|
||||
String get_name() override { return "column_matrix"; }
|
||||
};
|
Reference in New Issue
Block a user