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);
}
}
}

No comments:

Post a Comment