title: Can I draw a line on a html5 canvas with variable widths per segment?
body: <p>I would like to draw a multiple segment line on a html 5 canvas with variable width per segment.</p>
  
  <p>I tried something like (pseudocode):</p>
  
  <pre><code>
  beginpath()
  setLineWidth(1)
  lineTo(0,0)
  ...
  setLineWidth(10)
  lineTo(73, 44)
  
  stroke()
  </code></pre>
  
  <p>but it seems stroke only takes the last linewidth() value? Is there another way?</p>
  
  <p>I tried making every segment its own line, but that turned out really really show when drawing 1000+ segments.</p>