int x=50; int y=50; int width=250; int high=200; void mouseClicked(){ x = mouseX; y = mouseY; redraw(); } void setup(){ size(width, high); noLoop(); } void draw(){ rect(0, 0, width, high); ellipse(x, y, 55, 55); }