void setup(){
size(600,600);
}
void draw(){
translate(mouseX,mouseY-100);
fill(189,95,0);
ellipse(142,143,277,167);
fill(189,95,0);
ellipse(45,76,100,100);
fill(189,95,0);
ellipse(217,64,100,100);
fill(79,39,0);
ellipse(94,162,26,26);
fill(79,39,0);
ellipse(196,153,26,26);
fill(255,255,255);
ellipse(149,179,70,60);
fill(79,39,0);
ellipse(149,168,10,10);
}
2.
void setup(){
size(600,600);
}
float [] x = new float[10];
float [] y = new float[10];
void draw(){
background(0,0,0);
translate(mouseX,mouseY-100);
fill(189,95,0);
ellipse(142,143,277,167);
fill(189,95,0);
ellipse(45,76,100,100);
fill(189,95,0);
ellipse(217,64,100,100);
fill(79,39,0);
ellipse(94,162,26,26);
fill(79,39,0);
ellipse(196,153,26,26);
fill(255,255,255);
ellipse(149,179,70,60);
fill(79,39,0);
ellipse(149,168,10,10);
fill(255,243,140);
x[9]=mouseX;
y[9]=mouseY;
for(int i=0;i<9;i++){
ellipse(x[i],y[i],20,20);
x[i]=x[i+1];
y[i]=y[i+1];
}
}
3.學了很多,但亮亮的尾巴自己弄時有點不清楚
沒有留言:
張貼留言