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

LAB 0 ชิ้นที่ 1

CODE

void setup(){
size(400,400);
background(255);

stroke(243,233,33);
fill(243,233,33);
rect(0,0,400,400,10); //background yellow

fill(7,7,144);
rect(30,30,340,340,10); //background blue

stroke(215,215,0);
fill(215,215,0);
quad(100,50,230,50,200,80,130,80); //top of L

quad(130,80,200,80,200,300,130,300);  //body of L
quad(130,300,60,300,60,300,130,270);  //left bottom Of L

quad(200,300,300,300,300,240,180,240); //right bottom part 1 only rect OF L

quad(300,300,350,200,350,190,300,240); //right bottom part2 OF L

stroke(255,255,0);
line(100,50,165,80); //line of light top left
line(230,50,165,80); //line of light top right
line(165,80,165,270); //line of light middle
line(60,300,165,270); //line of light bottom left
line(165,270,300,270); //line of light bottom middle right
line(300,270,350,190); //line of light bottom right

fill(0);
ellipse(30,30,40,40); //circle top left



}




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

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