void setup ()
{
size (400, 400);
background (250);
}
void draw ()
{
fill(250,100);
rect(0,0,400,400);
noFill();
strokeWeight(3);
if ((mouseX<200)&&(mouseY<200))
{
ellipse(mouseX,mouseY,150,100);
}
else if ((mouseX>200)&&(mouseY<200))
{
ellipse(mouseX, mouseY,100,150);
}
else if ((mouseX<200)&&(mouseY>200))
{
ellipse(mouseX, mouseY,100,100);
}
else
{
ellipse(mouseX, mouseY,random (100), random (100));
}
}
Hiç yorum yok:
Yorum Gönder