path(ctx, start, count) {
    const segments = this.segments;
    const segmentMethod = _getSegmentMethod(this);
    let loop = this._loop;

    start = start || 0;
    count = count || (this.points.length - start);

    for (const segment of segments) {
      loop &= segmentMethod(ctx, this, segment, {start, end: start + count - 1});
    }
    return !!loop;
  }
Append all segments of this line to current path.
@param {CanvasRenderingContext2D|Path2D} ctx
@param {number} [start]
@param {number} [count]
@returns {undefined|boolean} - true if line is a full loop (path should be closed)