VulcanoLE/headers/VulcanoLE/Scripts/RainbowLine.h

29 lines
837 B
C
Raw Normal View History

#pragma once
#include <VulcanoLE/Visual/VIZ.h>
namespace VIZ {
class RainbowLine : public VIZ {
int currentColumn = 0;
2021-12-30 18:06:04 +01:00
double deltaNeeded = 0.0;
double deltaElapsed = 0;
rgba *colours = nullptr;
2021-05-02 17:25:03 +02:00
int maxCols = 0;
double lastValue = 0;
double decayValue = 0;
2021-12-30 18:06:04 +01:00
double tailFactor = 0.5;
public:
RainbowLine(AudioGrabber *pGrabber, Vulcan121 *vulcan);
~RainbowLine() override;
void onSetup() override;
void onTick(float delta) override;
void calcNextDelta(double ratio);
const char *name() override;
std::string m_name = "Rainbow Line";
2021-12-30 18:06:04 +01:00
led_map data{};
bool firstUnder = true;
double deltaMove(double val);
2021-05-02 17:25:03 +02:00
void moveLine(double val, double d);
double factor = 1.0;
};
}