ctx.beginPath(); ctx.moveTo(0, 0); ctx.lineWidth = 15; ctx.lineCap = 'round'; ctx.lineTo(100, 100); ctx.stroke();