วันอาทิตย์ที่ 16 สิงหาคม พ.ศ. 2558

LAB 0 ชิ้นที่ 2

CODE

void setup(){
  size(200,200);

  stroke(196,255,23); //background yellow
  fill(196,255,23);
  rect(0,0,20,200);

  stroke(23,255,48); //background green
  fill(23,255,48);
  rect(20,0,20,200);

  stroke(23,255,195); //background blue green
  fill(23,255,195);
  rect(40,0,20,200);

  stroke(223,245,255); //background white
  fill(223,245,255);
  rect(60,0,20,200);

  stroke(23,183,255); //background blue
  fill(23,183,255);
  rect(80,0,20,200);

  stroke(23,83,255); //background hard blue
  fill(23,83,255);
  rect(100,0,20,200);

  stroke(103,23,255); //background purple
  fill(103,23,255);
  rect(120,0,20,200);

  stroke(161,23,255); //background hard purple
  fill(161,23,255);
  rect(140,0,20,200);

  stroke(227,23,255); //background pink
  fill(227,23,255);
  rect(160,0,20,200);

  stroke(255,23,201); //background hard pink
  fill(225,23,201);
  rect(180,0,20,200);

  stroke(0);
  strokeWeight(3);
  fill(255,231,41);
  ellipse(100,100,150,150); //circle face

strokeWeight(8); //big point for make eye
point(75,70); //Right eye
point(120,70); //Left eye

  strokeWeight(2);
  fill(255);
  arc(100,100,100,80,0,PI); //mouth
  fill(255,231,41);
  arc(100,100,100,60,0,PI); //mouth

  // +++++++set of tooth left to right++++++
  line(60,119,60,125);
  line(70,123,70,131);
  line(80,127,80,135);
  line (90,129,90,139);
  line(100,131,100,141);
  line(110,129,110,139);
  line(120,127,120,135);
  line(130,123,130,131);
  line(140,119,140,125);



}




ไม่มีความคิดเห็น:

แสดงความคิดเห็น