Skip to content

Instantly share code, notes, and snippets.

@shameerc
Created October 1, 2011 09:48
Show Gist options
  • Save shameerc/1255817 to your computer and use it in GitHub Desktop.
Save shameerc/1255817 to your computer and use it in GitHub Desktop.
function to draw ball
// function to draw ball
function drawBall(){
ctx.fillStyle = 'orange';
ctx.beginPath();
ctx.arc(ball.x, ball.y,radius,0, 2*PI,false);
ctx.fill();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment