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

lab1 harry potter book

void setup() {
   int Y=250
   size(520, 750);
   background(0);
   //Name
   stroke(74, 172, 230);
   quad(419, 130, 419, 22, 75, 22, 75, 130);
   //text
   font = loadFont("FFScala.ttf");
   textFont(font);
   fill(0, 102, 153);
   textSize(40);
   text("Harry", 200, 70);
   fill(0, 102, 153);
   textSize(40);
   text("Potter", 195, 110);
   //sign
   stroke(0,102,51)
   fill(0,102,51)
   quad(0, 160+Y, 500, 160+Y, 0, 750+Y, 500, 750+Y);
   //page
   stroke(0)
   fill(184, 184, 184);
   quad(500, 0, 510, 0, 510, 750, 500, 750);
   quad(510, 0, 520, 0, 520, 750, 510, 750);
 }  

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

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