void setup() {
background(0,255,255);
size(500, 500);
strokeWeight(4);
println("Doraemon");
print("Picture"); //face
fill(0, 153, 255);
ellipse(250,250,380,400);
fill(255);
ellipse(250,285,310,330);
//eye
ellipse(210,130,70,85);
ellipse(290,130,70,85);
fill(0);
noFill();
arc(210,130,20,20,PI,2*PI);
arc(290,130,20,20,PI,2*PI);
//nose
fill(204, 51, 0);
ellipse(250,180,35,35);
line(250,197,250,280);
//mus left
line(230,215,150,200);
line(230,235,150,235);
line(230,255,150,270);
//mus right
line(270,215,350,200);
line(270,235,350,235);
line(270,255,350,270);
//mouth
noFill();
arc(210, 295,30,30,PI/2,PI+PI/2);
fill(255);
arc(250, 310, 80, 80, 0, PI);
line (210,310,290,310);
}
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
commit เพิ่มเติม : เพื่ม userstory, bookmark
>> add userstory ทำการเพิ่ม userstory ใน functional tests >> add bookmark for user เพิ่มระบบ Bookmark โดยการสร้าง model ขึ...
-
1 2 3 4 5 6 7 8 9 def setup (): print (d2b( 8 )) def d2b (num): x = "" while num > 0 : x = str ( int (n...
-
1 2 3 4 5 6 7 8 9 10 11 12 13 def test_layout_and_styling ( self ): # Edith goes to the home page self . brow...
-
การใช้ template inheritence คือการสืบทอดเทมเพลต เพื่อให้ไม่ต้องเขียนโค้ดหน้าเว็บๆซ้ำๆ เราจะมีหน้าหลักอันเดียว (base.html or parent) ภายในนั...
ไม่มีความคิดเห็น:
แสดงความคิดเห็น