mirror of
				https://github.com/AquaMorph/Droplets.git
				synced 2025-10-31 16:23:19 +00:00 
			
		
		
		
	Graph animation renders left to right
This commit is contained in:
		| @@ -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)]); | ||||
|     } | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user