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

Lab1-Gintama(Resize)

void setup(){
  int resize = 40;
  int space = 200;
  size(500,600);
  background(100);
  strokeWeight(5);

  /////Book/////
  rect(50,50,400,500);

  /////Eye/////
  ellipse(150,200,100-resize,100-resize); //Left
  ellipse(150+space,200,100-resize,100-resize); //Right

  /////In Eye/////
  fill(0);
  ellipse(150,200,50-resize,50-resize); //Left
  ellipse(150+space,200,50-resize,50-resize); //Right

  /////Eyelashes/////
  line(110,140,120,160); //Left1
  line(150,130,150,150); //Left2
  line(190,140,180,160); //left3
  line(110+space,140,120+space,160); //Right1
  line(150+space,130,150+space,150); //Right2
  line(190+space,140,180+space,160); //Right3

  /////Mouth/////
  fill(#FFFF00);
  ellipse(250,320,250-resize,80-resize);
  line(140+resize,320,160-resize+space,320);

  ///// "ELIZABETH" /////
  fill(0);
  textAlign(CENTER);
  textSize(20);
  text("ELIZABETH",250,80);

  ///// "GINTAMA" /////
  fill(50);
  textAlign(CENTER);
  textSize(70-resize);
  text("GINTAMA",250,500);
}


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

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