I have made my base code. This will likely be my final code but I may add a few extras.
int x = 250;
int y = 250;
int h = 250;
int h2 = 250;
int w = 250;
int w2 =250;
void setup(){
size(500,500);
line (x,y,x,y-h);
line (x,y,x,y+h);
line (x,y,x-w2,y-h2);
line (x,y,x-w2,y+h2);
line (x,y,x+w2,y-h2);
line (x,y,x+w2,y+h2);
line (x,y-h,x-w2,y-h2);
line (x,y-h,x+w2,y-h2);
line (x,y+h,x-w2,y+h2);
line (x,y+h,x+w2,y+h2);
line (x,y,x+w,y);
line (x,y,x-w,y);
line (x-w,y,x-w2,y-h2);
line (x-w,y,x-w2,y+h2);
line (x+w,y,x+w2,y-h2);
line (x+w,y,x+w2,y+h2);
}
I enjoyed setting up my image using code. It made sense to me exactly how to place my lines to create my initial shape. I then added more lines and variables to my initial shape, this made it a more interesting form. I have done a small amount of changing of variables so far and it is a simple and exciting way to make new forms. I am pleased with how the forms come out as they create interesting shapes and I enjoy the symmetry in my forms.
No comments:
Post a Comment