import traer.animation.*; Smoother2D location; Animator a; void setup() { size( 400, 400 ); framerate( 50 ); smooth(); fill( 0 ); noStroke(); a = new Animator( 0.9 ); location = a.make2DSmoother(); } void draw() { background( 255 ); a.tick(); ellipse( location.x(), location.y(), 30, 30 ); } void mousePressed() { location.setTarget( mouseX, mouseY ); }