I added some slider bars to customize what the ball does and looks like. Click the background to change the ball's direction and press the spacebar to toggle the variables.