แสดงบทความที่มีป้ายกำกับ Lab 0 แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Lab 0 แสดงบทความทั้งหมด

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

touch typing


Lab0-GG


void setup(){
 size(500,550);
 background(#FFFFFF);
 rect(0, 0, 499, 549);
  //left heart
stroke(#000000);
strokeWeight(10);
 line(246, 85, 190, 15); //1
 line(190, 15, 90, 130); //2
 line(90, 130, 246, 321); //3
 line(246, 321, 246, 150); //4
 line(246, 150, 155, 150); //5
stroke(#F23383);
strokeWeight(7.5);
 line(246, 85, 190, 15); //1
 line(190, 15, 90, 130); //2
 line(90, 130, 246, 321); //3
 line(246, 321, 246, 150); //4
 line(246, 150, 155, 150); //5
 //left heart
stroke(#000000);
strokeWeight(10);
 line(262, 85,318, 15); //1
 line(318, 15, 418, 130);  //2
 line(418, 130, 262, 321); //3
 line(262, 321, 262, 150); //4
 line(262, 150, 353, 150); //5
stroke(#F23383);
strokeWeight(7.5);
  line(262, 85,318, 15); //1
 line(318, 15, 418, 130);  //2
 line(418, 130, 262, 321); //3
 line(262, 321, 262, 150); //4
 line(262, 150, 353, 150); //5
//Heart WAVE
strokeWeight(1);
 line(150, 370,185, 370);
 line(185, 370, 202, 344);
 line(202, 345, 202, 370);
 line(202, 370, 217, 344);
 line(217, 345, 217, 385);
 line(217, 385, 234, 357);
 line(234, 357, 244, 357);
 line(244, 357, 244, 370);
 line(244, 370, 259, 370);

 line(259, 370, 276, 344);
 line(276, 344, 276, 370);
 line(276, 370, 292, 344);
 line(292, 344, 292, 384);
 line(292, 384, 309, 357);
 line(309, 357, 319, 357);
 line(319, 357, 319, 370);
 line(319, 370, 354, 370);
 fill(#F23383);
 ellipse(354, 370, 3, 3);

    textSize(90);
    fill(#F23383);
    text("G",130,478);
    fill(#FFA5CB);
    textSize(40);
    text("irls",191,445);
    textSize(40);
    text("eneration",189,478);
 
  println("My faverite Music is ");
  print ("Girlsgeneration");
}

Lab0-ultraman


void setup(){
  size(550,700);
  fill(#D8BABA);
  rect(0, 0, 549, 699);
  fill(#FFFFFF);
  rect(0, 0, 55, 699);
  textSize(40);
  fill(#000000);
  text("1",15,50);
  textSize(20);
  text("45B",8,660);
  fill(#FF9966);
  rect(60, 5, 485, 450)
  fill(#000000);
  strokeWeight(4);
  ellipse(300, 250, 240, 250);//face back
  fill(#FFFFFF);
  rect(165, 251, 30, 40);//left ear
  rect(405, 251, 30, 40);//right ear
  ellipse(300, 254, 238, 245);
  fill(#FDFF40);//face front
  ellipse(360, 245, 70, 80);//right eye
  ellipse(240, 245, 70, 80);//left eye
  strokeWeight(2);
  fill(#000000);
  triangle(300, 275, 285, 100, 315, 100);  //crest
  textSize(70);
  fill(#000000);
  text("The",100,530);
  textSize(60);
  text("Ultraman",250,530);
  textSize(40);
  text("Original",380,580);
  println("My faverite book is ");
  print ("ultranma");

}

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

Lab 0 - Joker

void setup(){
 size(600, 600);
 background(#778899);
  fill(#FAEBD7);
  strokeWeight(5);
   ellipse(300, 300, 300, 400); //face

 stroke(#000000);
 strokeWeight(5);
  line(300, 98, 300,  50); //hair 1
  line(295, 98, 280,  60); //hair 2
  line(305, 98, 320,  60); //hair 3


   //Nose
  fill(#CC0000);
  strokeWeight(5);
   ellipse(300, 350, 70, 65); //nose
  fill(#FF0000);
  stroke(#FF0000);
  strokeWeight(1);
   ellipse(303, 350, 59, 55); //nose red
  fill(#FF4500);
  stroke(#FF4500);
  strokeWeight(1);
   ellipse(306, 350, 48, 45); //nose orange
  fill(#FFA500);
  stroke(#FFA500);
  strokeWeight(1);
   ellipse(309, 350, 37, 35); //nose yellow
 
 
  fill(#000000);
  stroke(#000000);
   quad(210, 250, 230, 200, 250, 250, 230, 300); //left tatto
 
  fill(#F8F8FF);
  strokeWeight(2);
   ellipse(230, 250, 80, 30); //left eye
   ellipse(370, 250, 80, 30); //right eye
   fill(#CC0000);
   stroke(#CC0000);
   strokeWeight(1);
    ellipse(230, 250, 10, 26); //left small eye
    ellipse(370, 250, 10, 26); //right small eye
    fill(#FF0000);
    stroke(#FF0000);
    strokeWeight(1);
     ellipse(230, 250, 2, 2); //left very small eye
     ellipse(370, 250, 2, 2); //right very small eye
   
   println("My Movie is Batman");
   print("This is JOKER");
}