Thursday, January 27, 2011

WTF Triangles!

//this is way better than the plaid sketch.

int x;
int y;

size(1200,1200);
background (45,80,130);

for(y=4;y<40;y++)
{
for(x=4;x<40;x++)
{
triangle(x*30,y*30,50,70,80,20); //don't know exactly how this works, but it look cool
stroke(0,0,0);
fill(200,230,0);
}
}


int a;
int b;

stroke(0,0,0);
fill(150,0,50);

for(b=8;b<15;b++)
{
for(a=8;a<15;a++)
{
quad(a*30,b*20,a*40,b*30,a*32,b*28,a*31,b*40); /*grid points might be wonky, but I still
don't know why it cuts them into the star trek logo*/

}
}

save("triangle.jpg");

No comments:

Post a Comment