int x=0;
void setup(){
size(350,250);
background(255);
}
void draw(){
background(255);
positive_sign(x,50,50);
x=(x+2)%width;
}
void positive_sign(int x,int y,int sizebox){
noStroke();
fill(255,0,0);
rect(x+sizebox,y,sizebox,sizebox);
rect(x+2*sizebox,y+sizebox,sizebox,sizebox);
rect(x+sizebox,y+sizebox,sizebox,sizebox);
rect(x+sizebox,y+2*sizebox,sizebox,sizebox);
rect(x,y+sizebox,sizebox,sizebox);
}
สมัครสมาชิก:
ส่งความคิดเห็น (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) ภายในนั...
ไม่มีความคิดเห็น:
แสดงความคิดเห็น