/// bouncing ball w/in box void setup() float ball; float left=25, right=475, top=25, bottom=475; float ballX=left, ballY=top+5, ballDX=3, ballDY=2; void setup(){ size(500,500); reset(); } void reset() { ballDX = random(25); ballDY= random(25); } void draw() { scene(); ball(); table(); action(); } void scene(){ } void table() { background(0); rectMode(CORNERS); rect (25,25,475,475); fill(225,10,200); stroke(255); } void action() { } void ball() { }