But that won't reset the settings.
I'm guessing you want/need to run this program in a public place.
I would recommend creating an object called Exibition or whatever, so every time you want to reset the program, you just create a new "Exibition" object with the original parameters.
Example
Code:
class Exibition{
float value;
Exibition(float value){
this.value=value;
}
void drawExibition(){
//your code here
println(value);
value++;
}
}
and
Code:
Exibition exibition1;
void setup(){
size(800,600);
exbition1=new Exibition(1); //original parameters here
}
void draw(){
if(hour()==8){
exibition1=new Exibition(1);
}
else if(hour()>8 && hour()<17){
exibition1.drawExibition();
}
}
This way, whenever the clock hits 8am a new "Exibition" object will be created on top of the old one, with the original parameters (in this case the value 1). If the clock is between 8am and 5pm it will execute the "drawExibition" function, which will actually work as the regular "draw()".
I believe the "hour()==8" might fail because if the frame falls in between a fraction of a second before or after it will not be executed,but I think that can be solved easily.
Thus, you will actually create a new exibition every day, rersetting things to its original state.
It might be overkill for your case, but I've found out it helps to simplify bigger code.