1
0
mirror of https://github.com/AquaMorph/Droplets.git synced 2025-05-18 00:26:58 +00:00

Graph animation renders left to right

This commit is contained in:
Christian Colglazier 2022-01-17 10:13:05 -05:00
parent 65a26b8e31
commit e6881fc906
2 changed files with 2 additions and 4 deletions
src
droplets
graphics

@ -105,7 +105,7 @@ ADDroplet::ADDroplet(DaisyPatch* m_patch,
Droplet(m_patch,
m_state) {
sample_rate = m_sample_rate;
SetAnimationRate(20);
SetAnimationRate(10);
ad[0].Init(Patch(),
sample_rate,
&m_state);
@ -194,8 +194,6 @@ void ADDroplet::Draw() {
title_graph->Update();
}
title_graph->SetPixelPercentage(ad[0].GetSignal());
//title_graph->SetPixelPercentage(0.99f);
title_graph->Draw(Patch(), 0, 0);
DrawName("AD");

@ -59,7 +59,7 @@ void Graph::Draw(DaisyPatch* patch, int x, int y) {
for (int w = 0; w < width; w++) {
for (int h = 0; h < height; h++) {
patch->display.DrawPixel(x+w, y+h,
graph[GetShiftArray(w, active, width)]
graph[GetShiftArray(width-w, active, width)]
[GetShiftArray(height-h, height-1, height)]);
}
}