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

23 สิงหาคม 2558

Lab0 Martin







void setup(){
size (600,400);
background(0);
//----- Frame -----//
noStroke();
rect(60,35,480,280,2); // Frame outside
fill(0);
rect(100,75,400,200,2);// Frame inside

//----- Positive Sign -----//
fill(255);
rect(140,155,140,40,2);
rect(190,105,40,140,2);

//----- X Sign -----//
quad(349,105,460,216,431,245,320,134);
quad(431,105,460,134,349,245,320,216);

//----- Tiltle -----//
fill(255);
PFont font;
font = loadFont("Arial-Black-52.vlw");
textFont(font);
text("MAR", 65 ,365);
text("IN", 232 ,365);
text("GARRI", 313 ,365);

//----- Positive Sign Tiltle -----//
rect(195,341,36,10);
rect(208,328,10,36);
//----- X Sign Tiltle -----//
quad(503,328,533,358,526,365,496,335);
quad(526,328,533,335,503,365,496,358);

}

17 สิงหาคม 2558

Lab0 Doraemon Book







void setup() {
size(500, 500);
background(#F6B0D8);
strokeJoin(ROUND);
//----- front page -----//
strokeWeight(2);
fill(#323C5D);
rect(100,100,270,340);

//----- behind doraemon background -----//
noStroke();
fill(#FCE314);
rect(125,220,220,205);

//----- name book background -----//
fill(255);
rect(125,130,220,50);
//----- name book -----//
fill(0);
textSize(35);
text("DORAEMON", 133, 167);

//----- book page -----//
strokeWeight(2);
stroke(0);
fill(255);
quad(100,100,130,80,400,80,370,100);
quad(370,100,400,80,400,420,370,440);
strokeWeight(1);
line(106,96,376,96);
line(112,92,382,92);
line(118,88,388,88);
line(124,84,394,84);
line(376,96,376,436);
line(382,92,382,432);
line(388,88,388,428);
line(394,84,394,424);

//----- Doraemon -----//
strokeWeight(3);
stroke(#325D87);
//----- face -----//
fill(#4F81BC);
ellipse(235,320,200,175);
fill(255);
ellipse(235,334,140,125);

//----- eyes -----//
fill(255);
ellipse(215,274,37,50);
ellipse(255,274,37,50);
fill(#325D87);
ellipse(220,279,8,8);
strokeWeight(4);
arc(248,281,6,6,PI,TWO_PI);
strokeWeight(3);

//----- nose -----//
fill(#FE0000);
ellipse(235,301,20,20);

//----- mounth -----//
noFill();
arc(235,350,100,50,0,PI);
line(235,312,235,375);

//----- Whiskers -----//
line(220,320,177,315);
line(220,325,175,325);
line(220,330,177,335);

line(250,320,293,315);
line(250,325,295,325);
line(250,330,293,335);

//----- collar -----//
fill(#FD0000);
rect(185,395,100,13);

//----- bell -----//
fill(#FCBE0C);
ellipse(235,394,20,20);

//----- hands -----//
fill(255);
ellipse(180,395,30,28);
ellipse(290,395,30,28);

}

16 สิงหาคม 2558

Lab0 Capt







void setup(){
size(600,600);
background(#0D0D0D);
noStroke();
fill(255);
textSize(550);
text("A", 100, 500);
fill(255);

//title
textSize(30);
text("CAPTAIN AMERICA", 162, 570);

//Shield
fill(#EE0000);
ellipse(370,300,250,250);
fill(255);
ellipse(370,300,210,210);
fill(#EE0000);
ellipse(370,300,170,170);
fill(#000080);
ellipse(370,300,130,130);

//Star
beginShape();
fill(255);
vertex(370,243);
vertex(382.5 , 280.5);
vertex(420 , 280.5);
vertex(395 , 305.5);
vertex(407.5 , 343);
vertex(370 , 318);
vertex(332.5 , 343);
vertex(345 , 305.5);
vertex(320 , 280.5);
vertex(357.5 , 280.5);
endShape(CLOSE);

}

14 สิงหาคม 2558

Lab0 PinkCat





void setup()
{
size (500,500); //dimension of the display window width and height = 500*500 pixel
background(#FFB5C5); //pink
strokeWeight(8);

//face
noFill();
ellipse(250,250,270,250);

//ear
line(131,190,115,105);
line(115,105,210,128);
line(369,190,385,105);
line(385,105,290,128);

//eyes
fill(0); //black
ellipse(190,240,30,65);
ellipse(310,240,30,65);

//nose
strokeWeight(8);
line(230,290,270,290);
line(272,291,250,310);
line(250,310,228,291);

//mounth
noFill();
arc(229,315,40,40,0, PI/2+QUARTER_PI);
arc(271,315,40,40,QUARTER_PI, PI);

//Whiskers
strokeWeight(4);
line(165,290,200,300);
line(165,305,200,305);
line(165,320,200,310);

line(335,290,300,300);
line(335,305,300,305);
line(335,320,300,310);
}