Processing Forum
void setup()
{
z = 0;
size(900, 900);
m = 0;
P=loadFont("AngsanaUPC-30.vlw");
textFont(P);
startingTime = millis();
xspeed = 5;
}
void draw()
{
background(0);
fill(255);
int seconds = (millis() - startingTime) / 1000;
int minutes = seconds / 60;
text((minutes) + ":" + (seconds),50,50);
for (int i = 0; i < Snowflake.size(); i++)
{
if(Snowflake.get(i).getY() > height+ 100)
{
Snowflake.remove(i);
}
else
Snowflake.get(i).display();
}
if(z<10000000)
{
Snowflake.add(new Snowflake(random(0,900),0));
z++;
frameRate(25);
}
fill(255,0,0);
rect(mouseX, 850,20,20);
fill(255,0,0);
rect(460,450,35,35);
}
void time() {
background(170);
fill(255);