Monday, June 25, 2012

// just type here
// and click "save" when your done

void setup() {  
  size(500,500);     
  background(255,0,0);  
  noStroke();  
  smooth();

}

void draw() {  
  if (mousePressed == true )
 
{  
    
    background(225,0,0);  

} else 

{      
  
  float x = mouseX;
  float y = mouseY; 
  float m = second();  
  fill(255,120-m*2);   
  Brushy (x, y, m*2); 
}

}

void Brushy (float x, float y, float m) 
  
  {  
    triangle(x-m, y+m, x, y, x+m, y+m);
  
}

info info

submitted by: xlaurajanesx
views: 46


treeThis sketch has a parent
Tags:

comments comment

loading loading...

 

Add a comment: