Created
October 1, 2011 09:48
-
-
Save shameerc/1255817 to your computer and use it in GitHub Desktop.
function to draw ball
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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