# Project – 05 – Wallpaper

sketch
``````//Dreami Chambers; Section C; dreamic@andrew.cmu.edu; Assignment-05-Project

var x = 0
var y = 0

function setup() {
createCanvas(400, 600);
}

function draw() {
background(255, 205, 225)

//calls the functions with random spacing
for (var x = -10; x <= width-100; x += 150) {
for (var y = 5;y <= height; y+= 170) {
push()
translate(x, y)
cherries()
pop()
}
}

for (var x = 70; x <= width-100; x += random(150, 210)) {
for (var y = 0;y <= height; y+= random(170, 200)) {
push()
translate(x, y)
flowers()
pop()
}
}

for (var x = 20; x <= width; x += random(100, 150)) {
for (var y = 20;y <= height; y+= random(100, 170)) {
push()
translate(x, y)
dots()
pop()
}
}
noLoop()
}

//cherries drawing
function cherries() {
noFill()
beginShape()
strokeWeight(2)
stroke(95, 175, 90)
curveVertex(80, 20)
curveVertex(60, 20)
curveVertex(50, 40)
curveVertex(50, 40)
endShape()
beginShape()
strokeWeight(2)
curveVertex(60, 20)
curveVertex(60, 20)
curveVertex(75, 31)
curveVertex(80, 31)
endShape()
strokeWeight(1)
fill(255, 85, 150)
strokeWeight(0)
circle(50, 50, 20)
circle(80, 40, 20)
fill(95, 165, 90)
push()
translate(70, -30)
ellipse(50, 20, 10, 20)
pop()
push()
ellipse(64, 32, 20, 10)
pop()
}

//flowers drawing
function flowers(){
fill(255)
push()
noStroke()
translate(50, 100)
ellipse(0, 0, 20, 30)
translate(15, 10)
ellipse(0, 2, 20, 30)
translate(15, 10)
ellipse(0, 0, 20, 30)
translate(15, 10)
ellipse(0, 0, 20, 30)
translate(15, 10)
ellipse(0, 2, 20, 30)
translate(15, 10)
pop()

fill(255, 140, 180)
strokeWeight(0)
ellipse(49, 115, 10, 10)
}

//random circles
function dots(){
strokeWeight(0)
var r = random(0, 15)
fill(255)
circle(0, 0, r)
}

// For this assignment, I wanted to make a design that looked similar to a phone wallpaper.
// I wanted it to look like something I would actually used, so I added colors and shapes that I like a lot.
// I also didn't want the shapes to have the same spacing between each other, as it makes the design look too symmetrical. So I used random to create some variation.``````