//Cora Hickoff
//Section D
//chickoff@andrew.cmu.edu
//Project-05
function setup() {
createCanvas(600, 400);
noStroke();
}
function draw() {
background(136, 179, 130);
drawGrid();
noLoop();
}
function drawGrid() {
for (var y = 0; y < height + 50; y += 100) {
for (var x = 0; x < width + 100; x += 100) {
fill(y*5/8, x*.9/2, x*1/3, 220);
//body
ellipse(x, y, 100, 200);
}
}
for (var y = 0; y < height + 50; y += 100) {
for (var x = 0; x < width + 10; x += 100) {
fill(y, 100, 100);
//mouth
ellipse(x, y+50, 20, 10);
}
}
for (var y = 0; y < height + 50; y += 100) {
for (var x = 0; x < width + 2; x += 100) {
fill(80, 70, 75);
//left eye
ellipse(x-15, y+13, 10, 10, 100);
//left mole
fill(0);
ellipse(x-23, y+18, 1.5, 1.5, 100);
//right eye
fill(75);
ellipse(x+20, y+30, 10, 10, 100);
//right mole
fill(0);
ellipse(x+25, y+40, 1.5, 1.5, 90);
}
}
noLoop();
}
When I started this project, I knew I wanted to make some kind of creature and have it duplicated in a way that made it look like they were in a crowd. I started by doing a quick sketch of these faces and then went from there, trying to make it a fun project. 🙂