- Show Code
/**@peep sketch */
float a;
int b;
float c;
float d;
float ellSize;
boolean direction;
void setup(){
size(400,400);
background(100,166,4);
a = 0;
b = width;
c = 0;
d = 50;
ellSize = 10;
direction = true;
frameRate(30);
}
void draw(){
a = random(c,d);
c = c + 5;
d = d + 5;
b = b - 10;
ellSize = random(5,25);
if(a > width){
setup();
}
if(direction){
ellipse(a,b,ellSize,ellSize);
}
if(b < 0){
b = 400;
}
}
Nothing in the gallery yet!
Comments
Nobody has said anything yet.