xxxxxxxxxx
28
var startTime = 0;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
if (millis() - startTime > 200) {
print(millis());
ellipse(100, 200, 50, 50);
}
if (millis() - startTime > 400) {
ellipse(200, 200, 50, 50);
}
if (millis() - startTime > 600) {
ellipse(300, 200, 50, 50);
}
if (millis() - startTime > 800) {
startTime = millis();
}
}