void setup(){ size(600,600); } void draw(){ //fill(255,255,255); // rect(100,100,100,100); PImage img; img = loadImage("456.jpg"); image(img,mouseX ,mouseY); }
void setup(){ size(600,600); //frameRate(1); } float x=100,y=100; void draw(){ background(255,255,255); PImage img; img = loadImage("456.jpg"); PImage img_dog; img_dog = loadImage("123.jpg"); image(img_dog,x,y); image(img,mouseX ,mouseY); x=x*0.8 + mouseX*0.1; y=y*0.8 + mouseY*0.1; }剛開始覺得算輕鬆,但感覺越來越複雜了,希望老師能稍微獎的再詳細一點!!
87
回覆刪除