วันเสาร์ที่ 23 สิงหาคม พ.ศ. 2557
Lab1 : favourite subject/topic
void setup() {
size(323, 200);
background(#E2FFAA);
int vertext_triangleX = 138;
int vertext_triangleY = 180;
int point_brandX = 153;
int point_brandY = 145;
int center_icecreamX = 138;
int center_icecreamY = 115;
int radius_icecream = 25;
int line_cherryX = 138;
int line_cherrry = 70;
strokeWeight(2);
stroke(#E69C53);
fill(#FFAD5C);
triangle(vertext_triangleX-28, vertext_triangleY-65, vertext_triangleX, vertext_triangleY, vertext_triangleX+28, vertext_triangleY-65); //cone
fill(#24248F);
quad(point_brandX, point_brandY, point_brandX-31, point_brandY, point_brandX-23, point_brandY+18, point_brandX-7, point_brandY+18); //brand
strokeWeight(2);
stroke(#E69C53);
fill(#FFAD5C);
ellipse(center_icecreamX, center_icecreamY, center_icecreamX-88, center_icecreamY-90); //cone
strokeWeight(2);
stroke(#FFBFBF);
fill(#FFB8B8);
ellipse(center_icecreamX, center_icecreamY-10, 2*radius_icecream, 2*radius_icecream); //ice-cream
strokeWeight(2);
stroke(#FF0000);
fill(#FF0000);
ellipse(center_icecreamX, center_icecreamY-35, radius_icecream-5, radius_icecream-5); //cherry
line(line_cherryX, line_cherrry, line_cherryX+12, line_cherrry-20); //cherry
fill(255);
rect(rectX,rectY,weight_rect,weight_rect);
rect(rectX+20,rectY-20,weight_rect,weight_rect); rect(rectX+30,rectY+5,weight_rect,weight_rect);
}
ป้ายกำกับ:
Lab1
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น