problem with G4P timer
in
Contributed Library Questions
•
2 years ago
Hi all,
I'm having a problem with 'timer' control in GUI for Processing library. Follow me:
Is it a bug?
I'm having a problem with 'timer' control in GUI for Processing library. Follow me:
- import guicomponents.*;
GTimer timer;
void setup(){
size(400,300);
timer = new GTimer(this, this, "foo", 10);
}
void foo() {
println("timer!!!");
}
- import guicomponents.*;
GTimer timer;
void setup(){
size(400,300);
timer = new GTimer(this, this, "foo", 10);
timer.setInterval(5000);
timer.start(3);
}
void foo() {
println("timer!!!");
}
Is it a bug?
1