js/ball.js
//create a new ball and adds to array
create a new ball and adds to array
create a new ball and adds to array
function newBall() {
  var ball = {
    x: Math.floor(Math.random() * container.width),
    y: Math.floor(Math.random() * container.height),
    r: Math.floor(Math.random() * 50 + 3),
    vx: Math.floor(Math.random() * 10),
    vy: Math.floor(Math.random() * 10),
    color: Math.floor(Math.random() * 255)
  }
  balls.push(ball);
}
function newBall ( ) { var ball = { x : Math . floor ( Math . random ( ) * container . width ) , y : Math . floor ( Math . random ( ) * container . height ) , r : Math . floor ( Math . random ( ) * 50 + 3 ) , vx : Math . floor ( Math . random ( ) * 10 ) , vy : Math . floor ( Math . random ( ) * 10 ) , color : Math . floor ( Math . random ( ) * 255 ) } balls . push ( ball ) ; }
create a new ball and adds to array
create a new ball and adds to array