// Jessica Timczyk
// Section D
// jtimczyk@andrew.cmu.edu
// Project-05-Wall Paper
var SIZE = 10;
function setup() {
createCanvas(600, 400);
}
function draw() {
background(185, 248, 252); // light blue between cirlces
drawGrid();
noLoop();
}
function drawGrid() {
// small squares covering background
for (var y = SIZE / 2; y < height + SIZE / 2; y += SIZE) {
for (var x = SIZE / 2; x < width +SIZE / 2; x += SIZE) {
ellipse(x, y, SIZE, SIZE);
}
}
// diagonal stripes
for ( var i = 0; i <= 150; i ++) {
x1 = i * 70;
y1 = i * 70;
strokeWeight(20);
stroke(255, 235, 14)
line(width + 300, x1 + 100, 0, y1 - 600);
}
// loop to repeatedly draw squiggle shape
for (var x = 20; x <= width + 60; x += 50) {
for ( var y = 0; y <= height + 80; y += 60) {
fill(0);
stroke(255);
strokeWeight(3);
beginShape(); // squiggle shape
vertex(x - 25, y - 5);
bezierVertex(x - 50, y , x - 45, y + 65, x + 5, y + 25);
bezierVertex(x - 10, y + 40, x - 30, y + 115, x - 25, y - 5);
endShape();
}
}
}
This wall paper did not turn out how I originally intended it to. I had imagined making a sort of night sky mural but along the way I had gotten distracted by drawing many circles as apposed to a few to make stars. Spiraling off of that I eventually morphed what was a moon shape into the weird squiggly shape and built off of it from there. Although it didn’t turn out how I had originally intended, I very much like how the pattern turned out and I find it very visually interesting and now reminds me slightly of candy stripes
.