I started working on this project in the p5 web editor. I couldn’t decide if I should use more basic shapes to make a simple portrait, or try to combine pieces to make a little more cartoon like portrait. I ended up playing with the stroke width and rotating shapes to make the hair and learning some new tricks with push and pop to make sure the translation and rotation didn’t affect the rest of my project.
//Emily Stark
//15-104A
//Project 01
function setup() {
createCanvas(400,400);
background(0);
}
function draw() {
//hair
fill(242, 225, 114);
noStroke();
ellipse(200,170,170,200);
rect(115,170,170,300);
//neck
stroke(0);
strokeWeight(1);
fill(240, 214, 168);
rect(185,270,30,60);
//face
stroke(0);
strokeWeight(1);
fill(240, 214, 168);
ellipse(200,200,150,200);
//shirt
noStroke();
fill(177,246,250);
ellipse(200,420,200,200);
//eyes
strokeWeight(3);
stroke(0);
noFill();
arc(160,200,45,30,PI,0);
arc(240,200,45,30,PI,0);
//smile
fill(255,0,0);
arc(200,250,50,40,0,PI,CHORD);
//bangs
noStroke();
fill(242, 225, 114);
push();
translate(220,150);
rotate(PI/4);
ellipse(0,0,150,80);
pop();
}