i can expand the soccer picture in x-plane,y-plane (used line&ellipse not rect)
ใน VERSION 7 ได้มีการสร้างตัวแปร w และ ตัวแปร h เพื่อใช้ในการขยายภาพในแกน x และแกน y (used line&ellipse not rect)
void setup() {
size(800, 800);
stroke(0);
background(255, 255, 255);
int x=300;
int y=300;
int w=0;//40
int h=0;//100
line(x-w,y-h,x+150+w,y-h);
line(x-w,y+140+h,x+150+w,y+140+h);
line(x-w,y-h,x-w,y+140+h);
line(x+150+w,y-h,x+150+w,y+140+h);
ellipse(x+75, y+70, 10+w, 10+h);
line(x-w,y+70,x+150+w,y+70);
stroke(126);
}



ไม่มีความคิดเห็น:
แสดงความคิดเห็น