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
}

info info

submitted by: Demitchimo
views: 62
draw as many circles as you want & when your ready click the mouse and reset the page!

Tags:

comments comment

loading loading...

 

Add a comment: