//Aaron Brody //pong float x = 200; float y = 250; float q = 175; float r = 5; float dx=1; float dy=1; float a = 175;//x y for rect float b = 485; void setup (){ size (400,500);} void draw(){ background (113,211,255); fill(0); rect (a,b,50,10); rect (q,r,50,10); ellipse(x,y,10,10); x = x+3*dx; y= y+3*dy; a = constrain (a,0,350); if (x>400) { dx= -dx; } else if (x<0) { dx = -dx; } if (y>500) { dy= -dy; } else if (y<0) { dy = -dy; } if (mousePressed && mouseButton == LEFT){ a = a-2;} if (mousePressed && mouseButton ==RIGHT){ a = a+2;} if (x>a && x