Skip to content

Commit

Permalink
start time should reset when button 'pressed'
Browse files Browse the repository at this point in the history
  • Loading branch information
LindseyB committed Aug 6, 2011
1 parent de86b25 commit 64ef5b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vis.pde
Expand Up @@ -50,7 +50,7 @@ facts[33] = "Barbara H. Liskov wins the Turing prize.";

PImage imgs = new PImage[count];

float start = millis();
float start;
boolean animating = false;

for(int i=0; i<count; i++){
Expand Down Expand Up @@ -118,6 +118,7 @@ void mouseClicked(){
if(mouseX > 730 && mouseX < 780 && mouseY > 530 && mouseY < 580){
//switch states
animating = !animating;
start = millis();
}
}

Expand Down

0 comments on commit 64ef5b3

Please sign in to comment.