Week 1: Self Portrait (distorted head)

Motivation

Me wearing sunglasses in the Abu Dhabi’s sun (thus yellow background!)

Process

The main purpose of the assignment is to get myself accustomed to the use of some functions in drawing shapes and lines. I found myself struggling with the arc function when drawing the bang and the shoulders.

The hair still does not look symmetrical but I am happy with it. I intended to draw untied hair at first as that’s how I usually look like, by putting 2 straight lines starting from my head to my shoulders. However, I could not find the shape I was satisfied with to fill in the hair color as well. I was wondering if we could fill in color within an area restricted by boundaries (not necessarily shapes). Eventually, I finished with a hair bun by drawing a circle which turns out quite suitable with the overall hot season and my initial motivation.

Regarding the shoulders, I attempted to use 2 separate arc functions at first to make them look smoother than a rectangle but the symmetry didn’t work well. I decided to go with one single arc instead and it worked!

void setup() {
  size (640, 640);
};

void draw() {
  background (255,255,0);
  
int x = width/2;
int y = height/2;

  //face
  noStroke();
  fill(236,188,180);
  ellipse(x,y-50,200,225);
  
  //torso
  rect(x-30,y+57,60,43);
  fill(252,137,83);
  rect(x-125,y+150,250,300);
  arc(x,y+300,367,405,radians(193),radians(347));
  
  //hair
  fill(80,51,60);
  arc(x-30,y-70,170,200,radians(150),radians(300));
  arc(x-30,y-70,300,200,radians(275), radians(385));
  circle(x+30,y-190,90);
  
  //sunglasses
  fill(0);
  rect(x-80,y-45,70,45);
  rect(x+25,y-45,70,45);
  stroke(0);
  strokeWeight(2);
  line(x-80,y-25,x+25,y-25);
  
  //mouth
  noStroke();
  fill(252,98,104);
  triangle(x-5,y+10,x,y+20,x+10,y+10);
}
  

 

Leave a Reply