作業1
void setup(){ size(600,600); } void draw(){ fill(255,255,255); rect(100,100,100,100); fill(255,168,178); ellipse(mouseX,mouseY,100,80); fill(0,0,0); ellipse(mouseX-15,mouseY-15,5,10); fill(0,0,0); ellipse(mouseX+15,mouseY-15,5,10); fill(0,0,0); ellipse(mouseX,mouseY+25,30,20); fill(255,168,178); ellipse(mouseX,mouseY+25,25,15); fill(0,0,0); ellipse(mouseX-5,mouseY+25,3,6); fill(0,0,0); ellipse(mouseX+5,mouseY+25,3,6); fill(255,168,178); ellipse(mouseX+30,mouseY-48,10,30); fill(255,168,178); ellipse(mouseX-30,mouseY-48,10,30); }
作業2
void setup(){ size(600,600); //frameRate(1); } float x=100,y=100; void draw(){ background(0,0,0); fill(123,72,38); ellipse(mouseX-5,mouseY-50,8,20); fill(123,72,38); ellipse(mouseX,mouseY-45,50,10); fill(123,72,38); ellipse(mouseX,mouseY-40,65,10); fill(123,72,38); ellipse(mouseX,mouseY-35,80,10); fill(123,72,38); ellipse(mouseX,mouseY-28,90,15); translate(x,y); fill(255,168,178); ellipse(0,0,100,80); fill(0,0,0); ellipse(-15,-15,5,10); fill(0,0,0); ellipse(+15,-15,5,10); fill(0,0,0); ellipse(0,+25,30,20); fill(255,168,178); ellipse(0,+25,25,15); fill(0,0,0); ellipse(-5,+25,3,6); fill(0,0,0); ellipse(+5,+25,3,6); fill(255,168,178); ellipse(+30,-48,10,30); fill(255,168,178); ellipse(-30,-48,10,30); x=x*0.9 + mouseX*0.1; y=y*0.9 + mouseY*0.1; }作業3 心得:這次對於畫圖的技巧感覺更熟練了!
90
回覆刪除