// The current coordinates of the ball, starting at the center float x=200, y=200; void setup() { size(400,400); smooth(); noStroke(); background(0); } void draw() { fill(0,3); rect(0,0,width,height); fill(255); ellipse(x,y,20,20); // Move the position by random steps in x and y x = x+random(-10,10); y = y+random(-10,10); } void mousePressed() { x = mouseX; y = mouseY; } // START NO NOTES // code used to capture screenshots void keyReleased() { if(key == '`' && !online) save("sketch.png"); }