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);
}
}
}
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);
}
}
}
comments
loading...
Add a comment:

This sketch has a