1.
void setup(){
size(600,600);
}
void draw(){
fill(255,255,255);
rect(100,100,100,100);
fill(78,168,250);
ellipse(mouseX,mouseY,04,20);
}
2.
void setup(){
size(600,600);
}
float x=100,y=100;
void draw(){
background(100,150,200);
fill(212,211,78);
ellipse(mouseX,mouseY,100,100);
translate(x,y);
fill(255,255,255);
ellipse(0,0,80,80);
fill(0,0,0);
ellipse(-15,-15,20,20);
fill(0,0,0);
ellipse(15,-15,20,20);
fill(0,0,0);
ellipse(0,+13,15,10);
fill(255,255,255);
ellipse(-15,-15,10,10);
fill(255,255,255);
ellipse(15,-15,10,10);
fill(0,0,0);
ellipse(-30,-45,35,35);
fill(0,0,0);
ellipse(+30,-45,35,35);
x=x*0.9 + mouseX*0.1;
y=y*0.9 + mouseY*0.1;
}
3.心得
就是方向感要很好才能算出什麼位子要畫什麼東西 ㄏㄏ
84
回覆刪除