1
void setup(){
size(600,600);
}
void draw(){
fill(255,0,0);
ellipse(mouseX,mouseY,150,100);
}
2void setup(){
size(500,500);
frameRate(24);
}
float x=100,y=100;
void draw(){
background(0,0,0);
fill(random(255),random(255),random(255));
ellipse(mouseX,mouseY,50,50);
fill(255,0,0);
ellipse(x,y,50,100);
x=x*0.9 + mouseX*0.1;
y=y*0.9 + mouseY*0.1;
}
這周教得很有趣很實用
80
回覆刪除