void setup(){
size (340,440);
background(#26860C);
println("Keroro");
print("Gunso");
//book
strokeWeight(3);
fill(#1ED36E);
rect(20,20,300,400);
//face
fill(255);
rect(20,20,300,300);
//yellow cap
fill(#F5FF6A);
rect(20,20,300,50);
//star
fill(#F50529);
noStroke();
quad(170,20,190,60,170,50,150,60);
triangle(140,35,200,35,170,50);
//green face
stroke(0);
strokeWeight(3);
fill(#33AF47);
rect(20,70,300,185);
//mouth1
fill(255);
arc(170,310,420,150,QUARTER_PI+PI,2*PI-QUARTER_PI);
//mouth2
fill(#FA7474);
arc(170,235,70,50,0,PI);
//eye
fill(255);
ellipse(90,160,100,100);
fill(0);
ellipse(90,160,50,50);
fill(255);
ellipse(250,160,100,100);
fill(0);
ellipse(250,160,50,50);
//TEXT
textSize(30);
text("KERORO",115,400);
}
สมัครสมาชิก:
ส่งความคิดเห็น (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) ภายในนั...
ไม่มีความคิดเห็น:
แสดงความคิดเห็น