//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");
Thursday, January 27, 2011
Wednesday, January 26, 2011
Plaid Sketch 1
//stretched the checkerboard pattern out of shape and recolored it.
//very, very rough. mostly changed values only.
void setup ()
{
size(1000,1000);
int y,x;
int square_height=6;
int square_width=6;
for(y=0;y<200;y++)
{
for(x=0;x<200;x++)
{
if(y%13==0) //oddly, only a good range between the x% and y% here are interesting.
{
if(x%3==1) //values too close together are too close and "busy", color-wise
{
fill(0,90,170);
}
else
{
fill(0,50,200);
}
}
else
{
if(x%2==1)
{
fill(180,0,0);
}
else
{
fill(100,20,200);
}
}
rect(x*square_width,y*square_height,square_width,square_height);
}
}
}
//very, very rough. mostly changed values only.
void setup ()
{
size(1000,1000);
int y,x;
int square_height=6;
int square_width=6;
for(y=0;y<200;y++)
{
for(x=0;x<200;x++)
{
if(y%13==0) //oddly, only a good range between the x% and y% here are interesting.
{
if(x%3==1) //values too close together are too close and "busy", color-wise
{
fill(0,90,170);
}
else
{
fill(0,50,200);
}
}
else
{
if(x%2==1)
{
fill(180,0,0);
}
else
{
fill(100,20,200);
}
}
rect(x*square_width,y*square_height,square_width,square_height);
}
}
}
Monday, January 24, 2011
Monday, January 17, 2011
Subscribe to:
Posts (Atom)