วันเสาร์ที่ 23 สิงหาคม พ.ศ. 2557
Lab1 : my hope and dream
void setup() {
size(323, 200);
background(#FFFFFF);
int pointRightX_body = 176 ;
int pointTopY_body = 127 ;
float centerX_flash = 127.5 ;
int centerY_flash = 118 ;
int size_partCamera = 20 ;
fill(#333333);
quad(pointRightX_body, pointTopY_body, pointRightX_body-98, pointTopY_body, pointRightX_body-98, pointTopY_body+42, pointRightX_body, pointTopY_body+42); //gray body
fill(#6699FF);
quad(pointRightX_body, pointTopY_body, pointRightX_body-98, pointTopY_body, pointRightX_body-98, pointTopY_body-19, pointRightX_body, pointTopY_body-19); //blue body
fill(#000000);
rect(pointRightX_body-67, pointTopY_body+1, pointRightX_body-141, pointTopY_body-87); // black body
fill(#6699FF);
rect(pointRightX_body-63.5, pointTopY_body-22.5, size_partCamera+8, size_partCamera+8); //blue flash
fill(#000000);
rect(pointRightX_body-59.5, pointTopY_body-18.5, size_partCamera, size_partCamera); //black flash
fill(#FFFFFF);
ellipse(centerX_flash, centerY_flash, size_partCamera-7, size_partCamera-7); //flash
fill(#999999);
ellipse(centerX_flash, centerY_flash+32, size_partCamera+5, size_partCamera+5); //gray camera2
fill(#999999);
ellipse(centerX_flash, centerY_flash+32, size_partCamera-5, size_partCamera-5); //gray camera1
fill(#000000);
rect(pointRightX_body-99, pointTopY_body-22.5, size_partCamera-5, size_partCamera-10); //button
fill(#000000);
ellipse(centerX_flash-72.5, centerY_flash+47, size_partCamera+5, size_partCamera-15); //camera cover
fill(#333333);
rect(pointRightX_body-134, pointTopY_body+38, size_partCamera+5, size_partCamera-15); //camera cover
int photo_purpleX = 185 ;
int photo_purpleY = 65 ;
int photo_width = 35 ;
int photo_height = 40 ;
fill(#CC33FF);
rect(photo_purpleX, photo_purpleY, photo_width, photo_height); //photo purple
fill(#FF99FF);
rect(photo_purpleX+48, photo_purpleY+10, photo_width, photo_height); //photo pink
fill(#FFCC99);
rect(photo_purpleX+18, photo_purpleY+40, photo_width, photo_height); //photo cream
}
ป้ายกำกับ:
Lab1
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น