float x; float y; float targetX, targetY; float easing = 0.1; void setup() { size(340, 320); smooth(); noStroke(); background(255); } void draw() { background(255); targetX = mouseX; float dx = mouseX - x; if(abs(dx) > 1) { x += dx * easing;} targetY = mouseY; float dy = mouseY - y; if(abs(dy) > 1) { y += dy * easing;} fill(0,113,188); rect(x, 0, 170, 320); PImage img; img = loadImage ("human.png"); image (img,190,38); PFont font; font = loadFont ("Arial-BoldMT-15.vlw"); textFont(font); fill(255); text ("human being",35,90); text ("+ ",80,125); text ("nature ",60,160); text ("II ",80,205); fill(255,0,0); text ("The One ",50,250); }