Iterative wallpaper

Screen Shot 2014-09-17 at 8.55.28 PM

 

This is the wallpaper I made for the iterative assignment. Some aspects of this pattern I had fun playing with involved opacities of the shapes, as well as the layering that occurs as the program runs. Unfortunately, I was unable to recover the exact code after my computer died, but I will post the code I used to start, below.

 

// Will Taylor
// Iteration wallpaper

int width = 800; int height = 800;
int fr = 24;

void setup(){
size(width, height);
background(255);

}

void draw(){
background(#FF4D6E);
strokeWeight(5);
stroke(#4DFF6F);

int diam = width/10;
float rad = diam*.75;
//green lines
for (int i = 0; i <=20; i++){
line(0, i*diam/2, width, i*diam);
}
stroke(0);
for (int r = 0; r <= 13; r++){
for (int c = 0; c <= 13; c++){
smooth();
strokeWeight(5);
fill(#FFF300,25); // yellow
ellipse(r*rad, c*rad, diam, diam);
strokeWeight(2);
fill(#008AFF, random(100)); // blue
ellipse(r*rad, c*rad, diam/4, diam/4);
}

}

}

 

 

Comments are closed.