วันเสาร์ที่ 15 สิงหาคม พ.ศ. 2558

Lab0 : Song

void setup(){
 size(450,300);
background(#FA3F58);
fill(255);
noStroke();
fill(100,100,100,150);
quad(118,230,332,230,335,236,122,236);

//T
fill(255);
quad(112,135,223,135,206,155,132,155);
quad(160,155,185,155,140,230,115,230);
stroke(#FA3F58);
strokeWeight(4);
line(205,135,192,155);

//B
fill(255);
ellipse(246,200,67,65);
fill(#FA3F58);
ellipse(246,200,25,25);
fill(255);
noStroke();
triangle(216,190,216,145,240,174);

//O
stroke(#FA3F58);
ellipse(190,200,67,65);
fill(#FA3F58);
ellipse(190,200,25,25);

//U
stroke(#FA3F58);
fill(255);
ellipse(300,200,67,65);
fill(#FA3F58);
ellipse(300,200,25,25);
rect(270,165,60,20);
}


Lab0 : Book

void setup(){
  size (340,440);
  background(#26860C);
  println("Keroro");
  print("Gunso");
  //book
  strokeWeight(3);
  fill(#1ED36E);
  rect(20,20,300,400);
  //face
  fill(255);
  rect(20,20,300,300);

  //yellow cap
  fill(#F5FF6A);
  rect(20,20,300,50);
  //star
  fill(#F50529);
  noStroke();
  quad(170,20,190,60,170,50,150,60);
  triangle(140,35,200,35,170,50);

  //green face
  stroke(0);
  strokeWeight(3);
  fill(#33AF47);
  rect(20,70,300,185);
  //mouth1
  fill(255);
  arc(170,310,420,150,QUARTER_PI+PI,2*PI-QUARTER_PI);
  //mouth2
  fill(#FA7474);
  arc(170,235,70,50,0,PI);
  //eye
  fill(255);
  ellipse(90,160,100,100);
  fill(0);
  ellipse(90,160,50,50);
   fill(255);
  ellipse(250,160,100,100);
  fill(0);
  ellipse(250,160,50,50);

  //TEXT
  textSize(30);
  text("KERORO",115,400);
}

วันพุธที่ 12 สิงหาคม พ.ศ. 2558

Lab0 : Movie

void setup() {
 background(0,255,255);
  size(500, 500);
  strokeWeight(4);
  println("Doraemon");
  print("Picture");  //face
  fill(0, 153, 255);
  ellipse(250,250,380,400);
  fill(255);
  ellipse(250,285,310,330);
 
  //eye
  ellipse(210,130,70,85);
  ellipse(290,130,70,85);
  fill(0);
  noFill();
  arc(210,130,20,20,PI,2*PI);
  arc(290,130,20,20,PI,2*PI);
 
  //nose
  fill(204, 51, 0);
  ellipse(250,180,35,35);
  line(250,197,250,280);
 
  //mus left
  line(230,215,150,200);
  line(230,235,150,235);
  line(230,255,150,270);
 
  //mus right
  line(270,215,350,200);
  line(270,235,350,235);
  line(270,255,350,270);
 


 
  //mouth
   noFill();
  arc(210, 295,30,30,PI/2,PI+PI/2);
    fill(255);
  arc(250, 310, 80, 80, 0, PI);
line (210,310,290,310);

}

commit เพิ่มเติม : เพื่ม userstory, bookmark

>>  add userstory ทำการเพิ่ม userstory ใน functional tests >>  add bookmark for user เพิ่มระบบ Bookmark โดยการสร้าง model ขึ...