Tuesday, April 03, 2012
Colourful Circles
// just type here
// and click "save" when your done
void setup() {
size(800,500);
//page size
background(0,0,0) ;
//the background changes each time a new user uses it, also putting the background in void setup creates a trail of circles
}
void draw() {
ellipse(mouseX,mouseY, 70,70);
//follows the mouse & size
strokeWeight(10);
//the thickness of the outline
fill(random(1,255),random(1,255),random(1,255));
//multicoloured flashing filling
stroke(255,0,0);
//multicoloured flashing outline
}
void reset(){
background(random(1,255),random(1,255),random(1,255));
//resets the page to a different colour each time
}
void mousePressed(){
reset();
//click the mouse and clear the page
}
// and click "save" when your done
void setup() {
size(800,500);
//page size
background(0,0,0) ;
//the background changes each time a new user uses it, also putting the background in void setup creates a trail of circles
}
void draw() {
ellipse(mouseX,mouseY, 70,70);
//follows the mouse & size
strokeWeight(10);
//the thickness of the outline
fill(random(1,255),random(1,255),random(1,255));
//multicoloured flashing filling
stroke(255,0,0);
//multicoloured flashing outline
}
void reset(){
background(random(1,255),random(1,255),random(1,255));
//resets the page to a different colour each time
}
void mousePressed(){
reset();
//click the mouse and clear the page
}
info
submitted by:
Demitchimoviews: 62
draw as many circles as you want & when your ready click the mouse and reset the page!
comments
loading...
Add a comment:
