

Spot [] sp= new Spot [100];
void setup(){
size (500,500);
smooth();
noStroke();
for(int i=0; i<50; i="0;" goingright="true;" x="xpos;" y="ypos;" diameter="dia;" fcolor="fillColor;" goingright="true;" goingright="="true){" x="x+.5;">width){
goingRight=false;
}
if(goingRight==false){
x=x-.8;
}
}
void display(){ //causing bubbles to move across the screen
fill(fColor); //changes colors of dots
ellipse (x,y,diameter,diameter);
}
}
void keyPressed(){
if (key=='s'){
saveFrame("week3-####.jpg"); //saves the image in documents
}
}
No comments:
Post a Comment