Reputation: 11
So I'm using Processing and I want the program to draw one ellipse, then wait 2 seconds, then draw another different ellipse. How can I do that? These are the ellipses I wanna draw:
ellipse(350, 250, 160, 120); // big horizontal ellipse
strokeWeight(8); // stroke thickness
stroke(100); // stroke color
noFill(); // ellipse is transparent inside
ellipse(350, 250, 50, 120); // vertical ellipse
strokeWeight(8);
stroke(100);
noFill();
ellipse(350, 220, 130, 50); // small horizontal ellipse
strokeWeight(8);
stroke(100);
noFill();
Upvotes: 0
Views: 223
Reputation: 42174
You can use the frameCount
variable or the millis()
function to do stuff based on timing.
More info:
See also: the Processing reference
Upvotes: 1