void draw()
{
size(350, 250);
background(100,150,0);
draw_line(75,75);
int x,y;
x=20;
y=20;
noStroke();
fill(255);
ellipse(mouseX,mouseY,x,y)
}
void draw_line(int x,int y)
{
stroke(255);
strokeWeight(5);
noFill();
rect(2, 2, width-5, height-5);
ellipse(width/2, height/2, x, y);
line(width/2, 0, width/2, height);
rect(0, y/2, x, height-y);
rect(0, height/2-y/2, x/2, y);
rect(width-x, y/2, x, height-y);
rect(width-(x/2), height/2-y/2, x/2, y);
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น