//{PROGRAM adı;}
/*backgroung{0-255};
background(R,G,B);
backgorund(R,G,B,A);*/
//BEGIN
//...
//READLN;
//END.
//REAL --> FLOAT , DOUBLE
//INTEGER --> int
void setup()
{
size (400,400);
background(250);
//noLoop();
}
void draw()
{
//noStroke();
fill(250,50);
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