

int count=660;
void setup() {
size(500, 500);
}
void draw() {
if (count<60)
background(255, 0, 0);
else {
background(255);
count--;
}
fill(0, 255, 255);
textSize(50);
text("Time: "+int(count/60), 100, 100);
}
void mousePressed() {
count=660;
}
沒有留言:
張貼留言