/** * Guldensporenslag: schuif het motief linksboven over het beeldvlak. *
Keer terug */ PImage img; PImage img2; void setup(){ size(984,676); stroke(150); smooth(); img = loadImage("g2.jpg"); image(img,0,0); } void draw(){ filter(BLUR,1.0); fill(51,102,102); triangle(mouseX,mouseY, 116, 40, 172, 350); img2 = loadImage ("leeuw1.png"); int ix = mouseX - img2.width/-400; int iy = mouseY - img2.height/-400; image(img2, ix, iy); }