Hide and show image after x seconds
in
Core Library Questions
•
1 year ago
Hello,
I want to let Processing show an image after x seconds. And I want to hide another image simultaneously.
I don't know really how the seconds() and millis() works, so thats a problem.
I made this little script:
void draw() {
float m = millis();
delay(3000);
fill(m % 50 + 1000);
rect(0, 0, 640, 480);
}
A rectaingle appears after a few seconds, but I can't put it in another project because of the delay.
So is there a better way to do this?
Thank you?
I want to let Processing show an image after x seconds. And I want to hide another image simultaneously.
I don't know really how the seconds() and millis() works, so thats a problem.
I made this little script:
void draw() {
float m = millis();
delay(3000);
fill(m % 50 + 1000);
rect(0, 0, 640, 480);
}
A rectaingle appears after a few seconds, but I can't put it in another project because of the delay.
So is there a better way to do this?
Thank you?
1