วันพฤหัสบดีที่ 14 สิงหาคม พ.ศ. 2557

Lab 0 - Hope and Dream

My Hope and Dream is having a nice family in the future.

Here is my coding

void setup()
{
  size(500,300);
  background(134,255,74);
  noStroke();
  //Draw man
  fill(255,214,156); //face
  ellipse(150,100,30,30); //face
  fill(0); //hair
  beginShape(); //hair
  vertex(133,95);//1
  bezierVertex(138,82,162,82,167,95); //2
  vertex(133,95);//3
  endShape();

  fill(0,151,252); //shirt
  beginShape(); //shirt
  vertex(135,115); //1
  vertex(165,115); //2
  vertex(190,140); //3
  vertex(180,150); //4
  vertex(165,135); //5
  vertex(165,180); //6
  vertex(135,180); //7
  vertex(135,135); //8
  vertex(120,150); //9
  vertex(110,140); //10
  vertex(135,115); //11,1
  endShape();
  fill(20,25,33); //jeans
  beginShape(); //jeans
  vertex(165,180); //1
  vertex(170,245); //2
  vertex(155,245); //3
  vertex(150,200); //4
  vertex(145,245); //5
  vertex(130,245); //6
  vertex(135,180); //7
  endShape();

  //Draw woman
  fill(255,214,156); //face
  ellipse(350,100,30,30); //face
  fill(255,0,238); //shirt
  beginShape(); //shirt
  vertex(335,115); //1
  vertex(365,115); //2
  vertex(390,140); //3
  vertex(380,150); //4
  vertex(365,135); //5
  vertex(365,180); //6
  vertex(335,180); //7
  vertex(335,135); //8
  vertex(320,150); //9
  vertex(310,140); //10
  vertex(335,115); //11,1
  endShape();
  fill(0); //hair
  beginShape(); //hair
  vertex(360,93); //1
  vertex(340,93); //2
  vertex(340,125); //3
  vertex(330,125); //4
  vertex(330,93); //5
  bezierVertex(335,72,365,72,370,93); //6
  vertex(370,125); //7
  vertex(360,125); //8
  vertex(360,93); //9
  endShape();
  fill(20,25,33); //skirt
  beginShape(); //skirt
  vertex(365,180); //1
  vertex(380,245); //2
  vertex(320,245); //3
  vertex(335,180); //4
  endShape();

  //Draw HEART !!
  beginShape();
  fill(255,0,0);
  vertex(250,100); //1
  bezierVertex(200,60,220,20,250,40);
  bezierVertex(280,20,300,60,250,100);
  endShape();
}