void setup() {
size(400, 300);
background(255);
draw_pencil(100,50);
}
void draw_pencil(int move_pencil_x,int move_pencil_y)
{
fill(0,200,0);
quad(185+move_pencil_x, 90+move_pencil_y, 215+move_pencil_x, 100+move_pencil_y, 190+move_pencil_x, 190+move_pencil_y, 160+move_pencil_x, 180+move_pencil_y);
fill(255,190,141);
triangle(160+move_pencil_x,180+move_pencil_y,167+move_pencil_x,210+move_pencil_y,190+move_pencil_x,190+move_pencil_y);
fill(0);
triangle(163+move_pencil_x,195+move_pencil_y,167+move_pencil_x,210+move_pencil_y,179+move_pencil_x,200+move_pencil_y);
arc(203.5+move_pencil_x, 85+move_pencil_y, 31, 31, TWO_PI-PI/1.1, TWO_PI+PI/9);
fill(100);
quad(188+move_pencil_x, 80+move_pencil_y, 218+move_pencil_x, 90+move_pencil_y, 215+move_pencil_x, 100+move_pencil_y, 185+move_pencil_x, 90+move_pencil_y);
fill(200,0,0);
quad(185+move_pencil_x, 90+move_pencil_y, 195+move_pencil_x, 94+move_pencil_y, 170+move_pencil_x, 184+move_pencil_y, 160+move_pencil_x, 180+move_pencil_y);
fill(0,0,200);
quad(205+move_pencil_x, 97+move_pencil_y, 215+move_pencil_x, 100+move_pencil_y, 190+move_pencil_x, 190+move_pencil_y, 180+move_pencil_x, 187+move_pencil_y);
}
วันจันทร์ที่ 1 กันยายน พ.ศ. 2557
L.2 Pencil
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น