Created
October 23, 2011 20:24
-
-
Save coderberry/1307843 to your computer and use it in GitHub Desktop.
breakout.coffee
This file contains hidden or 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
| ctx = null | |
| $(document).ready -> | |
| # get a reference to the canvas | |
| ctx = $('#canvas')[0].getContext("2d") | |
| # draw a circle | |
| ctx.beginPath() | |
| ctx.arc(75, 75, 10, 0, Math.PI*2, true) | |
| ctx.closePath() | |
| ctx.fill() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment