Monday, May 14, 2012

disco triangles centre rotate

int blah = 0;

void setup(){
  
 size(400,400); 
  
  
}

void draw(){
smooth();

 
  blah = blah +0.1;
  
  translate(200,200);
  rotate(blah);
  
for (int i = 0; i<400; i=i+40){
  
 for (int j = 0; j<400; j=j+10){
  
  // translate(i/3,j/3);
   fill(random(0,255),random(0,255),random(0,255));
   stroke(0);
   
  triangle (i,i,j,i,i,j);
 } 
  
  
  
}


}

info info

submitted by: sophie_mcdonald
views: 88


treeThis sketch has a parent
Tags: loops

comments comment

loading loading...

 

Add a comment: