{"size": 634, "ext": "js", "max_stars_repo_path": "src/commands/common.js", "max_stars_repo_name": "NickNovoselov/instanced-lines-demo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/commands/common.js", "max_issues_repo_name": "NickNovoselov/instanced-lines-demo", "max_issues_repo_issues_event_min_datetime": "2021-03-10T02:20:21.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-10T21:51:43.000Z", "max_forks_repo_path": "src/commands/common.js", "max_forks_repo_name": "NickNovoselov/instanced-lines-demo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 19.8125, "max_line_length": 66, "alphanum_fraction": 0.5394321767}
export const segmentInstanceGeometry = [
  [0, -0.5],
  [1, -0.5],
  [1, 0.5],
  [0, -0.5],
  [1, 0.5],
  [0, 0.5]
];

export function circleGeometry(regl, resolution) {
  const position = [[0, 0]];
  for (let wedge = 0; wedge <= resolution; wedge++) {
    const theta = (2 * Math.PI * wedge) / resolution;
    position.push([0.5 * Math.cos(theta), 0.5 * Math.sin(theta)]);
  }
  return {
    buffer: regl.buffer(position),
    count: position.length
  };
}

export const instanceMiterJoin = [
  [0, 0, 0],
  [1, 0, 0],
  [0, 1, 0],
  [0, 0, 0],
  [0, 1, 0],
  [0, 0, 1]
];

export const instanceBevelJoin = [[0, 0], [1, 0], [0, 1]];
