var mousing = function() { fill(0, 0, 0); rect(0, 0, 400, 250); fill(87, 41, 6); rect(0, 250, 400, 150); image(getImage("pokemon/mew"), mouseX, 250, mouseY/2, mouseY/2); image(getImage("pokemon/pikachu"), mouseY, 250, mouseX/2, mouseX/2); }; var draw = function() { mousing(); };