title: How draw an open line or unclosed path pixi.js
body: <p>I am trying to draw a zig-zagged line across the canvas with a 6px colored stroke with no fill. However the shape is always closed and connects an unwanted line back to the origin. How can I prevent pixi.js from closing the path.</p>
  
  <pre><code>  @line = new PIXI.Graphics
    @line.lineStyle(6, color)
    stage.addChild(@line)
  
    @line.moveTo markX,markY
  
    for row, col in rows
      @line.lineTo(@getSymbolX(col)-spanDistance, @getSymbolY(row))
      @line.lineTo(@getSymbolX(col)+spanDistance, @getSymbolY(row))
  
    @line.lineTo(@getSymbolX(4) + 60, @getSymbolY(rows[4]))
    @line.lineStyle(0, color)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zK0p1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zK0p1.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>PIXI 3.07 has introduced a bug <a href="https://github.com/pixijs/pixi.js/issues/1892" rel="nofollow noreferrer">https://github.com/pixijs/pixi.js/issues/1892</a> a workaround solution is to use the following <strong>graphics.currentPath.shape.closed = false</strong></p>
  </blockquote>