var ctx = window.canvas.getContent("2d"); ctx.beginPath(); ctx.lineTo(50,50); ctx.closePath(); ctx.strock();