void setup ()
{
size (400, 400);
background (250);
}
void draw ()
{
fill(250,100);
strokeWeight(8);
int koorBirX=mouseX;
int koorBirY=mouseY;
beginShape();
vertex(koorBirX, koorBirY);
vertex(koorBirX+20, koorBirY);
vertex(koorBirX, koorBirY+20);
vertex(koorBirX, koorBirY+20);
vertex(koorBirX+40, koorBirY+40);
vertex(koorBirX, koorBirY+40);
endShape(CLOSE);
}
Hiç yorum yok:
Yorum Gönder