void setup(){
size(600,600);
}
void draw(){
fill(120,220,255);
rect(100,100,100,100);
fill(125,255,0);
ellipse(mouseX,mouseY,30,100);
}
void setup()
{
size(600,600);
}
float x=100,y=100;
void draw()
{
background(0,0,0);
fill(122,250,121);
ellipse(mouseX,mouseY,120,80);
fill(255,255,0);
ellipse(x,y,50,50);
x=x*0.9 + mouseX*0.1;
y=y*0.9 + mouseY*0.1;
}
上到現在感覺到processing這個軟體不必用太多複雜的程式就能畫出要的效果,真的很方便!
80
回覆刪除