Coffeescript Game Tutorial Draw a Circle 2014-06-27 Programming Canvas, CoffeeScript, Programming 캔버스에 동그라미를 그리는 코드이다. 1234567891011window.onload = -> # get a reference to the canvas canvas = document.getElementById("canvas") ctx = canvas.getContext("2d") # draw a circle ctx.beginPath() ctx.arc(75, 75, 10, 0, Math.PI * 2, true) ctx.closePath() ctx.fill() Reference Newer Coffeescript Game Tutorial Introduction Older Coffeescript Game Tutorial Add Some Color