# Justin Yook – Project 05 – Wallpaper

``````//Justin Yook
// Section C
// jyook@andrew.cmu.edu
// Project 05

// bear + flower wallpaper
function setup() {
createCanvas(600, 600);
background(135, 206, 250);
noLoop();
}

function draw() {
var box = 40; // bear original x position
var boy = 50; // bear original y position
var bvs = 55; // bear vertical spacing
var bhs = 110; // bear horizontal spacing

//draws bears and oranges
for (var y = 0; y < 11; y++) {
for (var x = 0; x < 10; x++) {
var bpy = boy + y * bvs; // y position of following bears drawn
var bpx = box + x * bhs; // x position of following bears drawn
var fpx = bpx + bhs + (bhs /2); // x position of fruit for even rows
var fpy = bpy + bvs; // y position of fruit for even rows

//draw bears on even rows
if (y % 2 == 0) {
noStroke();
fill(255);
ellipse(bpx, bpy, 60, 60);

//draw bear ears
fill(255);
ellipse(bpx + 14, bpy - 26, 15, 15);
ellipse(bpx - 14, bpy - 26, 15, 15);

//draw bear nose
fill(234, 212, 182);
ellipse(bpx, bpy, 20, 20);
fill(0);
ellipse(bpx, bpy - 8, 6, 6);

//draw bear eyes
fill(0);
ellipse(bpx + 8, bpy - 12, 6, 6);
ellipse(bpx - 8, bpy - 12, 6, 6);

//draw mouth
stroke(0);
line(bpx, bpy - 8, bpx - 4, bpy);
line(bpx, bpy - 8, bpx + 4, bpy);

//draw rosy cheeks
noStroke();
fill(255, 192, 203);
ellipse(bpx - 20, bpy, 15, 15);
ellipse(bpx + 20, bpy, 15, 15);
}

//draw oranges on odd rows
if (y % 2 != 0) {
//draw orange body
fill(255, 192, 79);
ellipse(bpx - bhs - 60, fpy - bvs, 30, 30);

//draw orange leaves
fill(50, 205, 50);
ellipse(bpx - bhs - 60, fpy - bvs - 10, 8, 8);
}
}
}
}
``````

I wanted to create a friendly and cute wallpaper that gives off a refreshing vibe. The blue background is supposed to be comfortable to the eyes, and the orange complements that color. I can imagine the wallpaper pattern to be on stationery products such as tapes, or pencil cases. There is no pen and paper sketch of the design, but my main inspiration was a bear character called Rice from StickyRiceCompany, a handmade-sticker shop; I tried to re-create the character as accurately as possible.