lib/index.js
function (x, y) {
    if (!this.pathStarted) {
      this.context.beginPath();
      this.context.moveTo(x,y);
      this.pathStarted = true;
    } else {
      this.context.lineTo(x,y);
    }
  }
function (x, y) {
    if (!this.pathStarted) {
      this.context.beginPath();
      this.context.moveTo(x,y);
      this.pathStarted = true;
    } else {
      this.context.lineTo(x,y);
    }
  }
function ( x , y ) { if ( ! this . pathStarted ) { this . context . beginPath ( ) ; this . context . moveTo ( x , y ) ; this . pathStarted = true ; } else { this . context . lineTo ( x , y ) ; } }
Adds a point to the path. If a path has not been started, create one

@param {number} x the x coordinate of the point
@param {number} y the y coordinate of the point
Adds a point to the path . If a path has not been started create one