ctx.lineWidth = 10; ctx.lineJoin = "round"; ctx.beginPath(); ctx.moveTo(0,0); ctx.lineTo(200, 100); ctx.lineTo(300,0); ctx.stroke();