UNPKG

@rickosborne/hexgrid

Version:

Rick Osborne's collection of hexagonal grid-related code.

18 lines (17 loc) 492 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); import { qrsRing } from "./qrs-ring.mjs"; const qrsSpiral = /* @__PURE__ */ __name((center, radius, builder) => { if (radius < 1) { return []; } const points = []; for (let r = 1; r <= radius; r++) { points.push(...qrsRing(center, r, builder)); } return points; }, "qrsSpiral"); export { qrsSpiral }; //# sourceMappingURL=qrs-spiral.mjs.map