ctx.beginPath(); ctx.moveTo(50,50); ctx.lineTo(100, 100); ctx.stroke();