# heeseoc-Project05-Wallpaper

``````//Steph Chun
//15-104 section #A
//heeseoc@andrew.cmu.edu
//Project-05

function setup() {
createCanvas(480, 480);
}

function draw() {
grid();
grid2();
grid3();
grid4();
}

function grid() {
background(243,242,224);
angleMode(DEGREES);
rotate(45);

for (var y = -height; y < height*2; y+=160) {
for (var x = 0; x < width*2; x+=160) {

strokeWeight(7.5);
stroke(250,176,91);
fill(235,1,0);
rect(x-15,y-15,150,150); //red rect w/ yellow str//
}
}
}

function grid2() {

for (var y = -height; y < height*2; y+=160) {
for (var x = 0; x < width*2; x+=160) {

strokeWeight(5);
stroke(81,56,49);
fill(235,176,14);
rect(x+90,y+250,100,100); //yellow rect w/ brown str//

stroke(47,215,127);
fill(95,115,0);
rect(x+100,y+260,80,80); //olive rect w/ neon green str//

stroke(229,129,7);
fill(234,7,14);
rect(x+110,y+270,60,60);

stroke(47,215,127); //green flower petals//
fill(95,115,0);
ellipse(x+125,y+285,25,25);
ellipse(x+125,y+315,25,25);
ellipse(x+155,y+315,25,25);
ellipse(x+155,y+285,25,25);

strokeWeight(2); //red flower petals//
stroke(255,195,112);
fill(234,7,14);
ellipse(x+126,y+300,20,20);
ellipse(x+155,y+300,20,20);
ellipse(x+140.5,y+314.5,20,20);
ellipse(x+140.5,y+285.5,20,20);

stroke(81,56,49); //yellow center//
fill(255,192,1);
ellipse(x+140.5,y+300,20,20);
}
}
}

function grid3() {
for (var y = -height; y < height*2; y+=160) {
for (var x = 0; x < width*2; x+=160) {
strokeWeight(5);
stroke(255,100,8);
fill(0,0,153);
rect(x,y,120,120); //blue rect w/ orange str//

}
}
}

function grid4() {
for (var y = -height; y < height*2; y+=160) {
for (var x = 0; x < width*2; x+=160) {

strokeWeight(5);
stroke(0,0,153);
fill(240,175,23);
ellipse(x+60,y+220,100,100); //yellow cirlces within blue rect//

stroke(68,220,135);
fill(255,119,1);
ellipse(x+60,y+220,80,80); //orange circles with neon green stroke//

strokeWeight(2.5); //red petals within the orange circle//
stroke(255,195,112);
fill(234,7,14);
ellipse(x+40,y+220,40,20);
ellipse(x+80,y+220,40,20);
ellipse(x+60,y+200,20,40);
ellipse(x+60,y+240,20,40);

strokeWeight(1.5); //green petals within the orange circle//
stroke(243,242,224);
fill(95,115,0);
ellipse(x+45,y+205,20,20);
ellipse(x+45,y+235,20,20);
ellipse(x+75,y+235,20,20);
ellipse(x+75,y+205,20,20);

strokeWeight(2.5); //orange center//
stroke(255,195,112);
fill(255,119,1);
ellipse(x+60,y+220,35,35);
}
}
}

``````

I was inspired by the traditional pattern of Korea. I simplified the pattern so that I would be able to execute it with coding, and adhered to the color scheme in the reference shown below. It has a lot of repetition and symmetrical shapes, which I thought was interesting to show through computation. Also, how these traditional patterns are meant to be crafted and drawn by hand but could also be digitally generated was another point of interest. I had to split my pattern into parts because it did not let me layer some shapes on top of other shapes even though I carefully controlled the order of my lines of codes.