xiangqil-Project-01-Face

sketchThis what I look like before I got the haircut, with signature round face and round eyes. I still found some problems to create suitable round-corner rectangular.

/*Liu Xiangqi Section A xiangqil@andrew.cmu.edu Assignment-01*/
function setup() {
    createCanvas(300, 300);
   
}

function draw() {
  fill(246,229,200);
  noStroke();
  ellipse(150,150,200,200);
  
  fill(246,229,200);
  ellipse(50,150,50,75);
  
  fill(246,229,200);
  ellipse(250,150,50,75);
  
  fill(0,0,0);
  ellipse(100,150,25,25);
  
  fill(0,0,0);
  ellipse(200,150,25,25);
  
  noFill();
  stroke(251,112,64);
  strokeWeight(8);
  curve(100,180,140,200,160,200,200,180);
 
  fill(0,0,0);
  noStroke();
  rect(50,50,200,80,80,80,0,0);
  
  fill(0,0,0);
  ellipse(150,40,50,50);
  
  fill(246,229,200);
  triangle(80,130,150,90,220,130);
  
}

Leave a Reply