code: function (x, y) {
      if (!this.pathStarted) {
        this.context.beginPath();
        this.context.moveTo(x,y);
        this.pathStarted = true;
      } else {
        this.context.lineTo(x,y);
      }
    }
docs: 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