@logomarks/generate 0.3.2 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Weave: two or three curves (waves of one to three swells) crossing each other, over and under by turns, the under
3
+ * strand broken by the gap at every crossing, inside a ring that holds their ends; or bare, with three strands. After the
4
+ * woven lenses in a ring of the owner's references. Never one swell (two curves crossing twice round one lens, in a ring:
5
+ * an eye), never a dot, and never three strands turned in threes (a trefoil).
6
+ */
7
+ import { sdPath, sdCircle, sdRing, shapeOf } from '@logomarks/core/sdf';
8
+ import { BOX, GAP, tidy } from '../draw.js';
9
+
10
+ /** @type {import('../index.js').Control[]} */
11
+ export const controls = [
12
+ { key: 'strands', label: 'Strands', type: 'range', min: 2, max: 3, step: 1, value: 2 },
13
+ { key: 'swells', label: 'Swells', type: 'range', min: 2, max: 3, step: 1, value: 2 },
14
+ { key: 'height', label: 'Height', type: 'range', min: 0.3, max: 0.7, step: 0.01, value: 0.5 },
15
+ { key: 'weight', label: 'Weight', type: 'range', min: 0.06, max: 0.1, step: 0.005, value: 0.075 },
16
+ { key: 'ring', label: 'Ring', type: 'choice', options: ['ring', 'none'], value: 'ring' },
17
+ { key: 'tilt', label: 'Tilt', type: 'range', min: -30, max: 30, step: 1, value: 0 },
18
+ ];
19
+
20
+ /** The mark for resolved params. */
21
+ export function build(p) {
22
+ const R = BOX.size / 2, T = p.weight * BOX.size, n = p.ring === 'none' ? 3 : p.strands;
23
+ const inner = p.ring === 'ring' ? R - T : R, A = inner * p.height, steps = 64;
24
+ const tilt = (p.tilt * Math.PI) / 180, ct = Math.cos(tilt), st = Math.sin(tilt);
25
+ const curve = (phase) => Array.from({ length: steps + 1 }, (_, i) => {
26
+ const u = -1.15 + (2.3 * i) / steps, x = u * inner, y = A * Math.sin((u * p.swells * Math.PI) / 2 + phase) * Math.cos((u * Math.PI) / 2.3);
27
+ return [BOX.cx + x * ct - y * st, BOX.cy + x * st + y * ct];
28
+ });
29
+ const phases = Array.from({ length: n }, (_, k) => (2 * Math.PI * k) / n + (n === 2 ? 0 : 0.4));
30
+ const lines = phases.map(curve), fields = lines.map((pts) => sdPath(pts, T));
31
+ // the crossings, in order across: at each, one strand goes over and the other is broken by the gap, by turns
32
+ const crossings = [];
33
+ for (let a = 0; a < n; a++) for (let b = a + 1; b < n; b++) {
34
+ const P = lines[a], Q = lines[b];
35
+ for (let i = 1; i < P.length; i++) {
36
+ const d0 = P[i - 1][1] - Q[i - 1][1], d1 = P[i][1] - Q[i][1];
37
+ if (Math.sign(d0) !== Math.sign(d1)) crossings.push({ a, b, at: P[i] });
38
+ }
39
+ }
40
+ crossings.sort((u, v) => u.at[0] - v.at[0]);
41
+ const zone = T * 2.4;
42
+ const woven = (x, y) => {
43
+ const d = fields.map((f) => f(x, y));
44
+ for (const [k, c] of crossings.entries()) {
45
+ if (Math.hypot(x - c.at[0], y - c.at[1]) > zone) continue;
46
+ const [over, under] = k % 2 ? [c.a, c.b] : [c.b, c.a];
47
+ d[under] = Math.max(d[under], GAP - d[over]);
48
+ }
49
+ return Math.min(...d);
50
+ };
51
+ const ring = p.ring === 'ring';
52
+ const clip = sdCircle(BOX.cx, BOX.cy, ring ? inner + T * 0.2 : R), band = sdRing(BOX.cx, BOX.cy, R - T / 2, T);
53
+ const f = (x, y) => { const w = Math.max(woven(x, y), clip(x, y)); return ring ? Math.min(w, band(x, y)) : w; };
54
+ return tidy(shapeOf(f, { h: 2.5, x0: BOX.x0 - 6, y0: BOX.y0 - 6, x1: BOX.x1 + 6, y1: BOX.y1 + 6 }));
55
+ }
56
+
57
+ /** Strands are lines: they run near the thin limit by design. */
58
+ export const guard = { maxThinShare: 0.06, minInkShare: 0.1 };
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Bent X: an X drawn as two bent bands, a V from the top and a V from the bottom, their bends meeting at the waist a gap
3
+ * apart, each bend round or flat, each V doubled by a second band outside it if asked. After the X of two bent
4
+ * bands in the owner's references. Never two straight bars crossing (a close icon, a multiplication sign): the bend and
5
+ * the gap at the waist are always there.
6
+ */
7
+ import { sdPath, sdBox, shapeOf } from '@logomarks/core/sdf';
8
+ import { BOX, GAP, tidy } from '../draw.js';
9
+
10
+ /** @type {import('../index.js').Control[]} */
11
+ export const controls = [
12
+ { key: 'angle', label: 'Arm angle', type: 'range', min: 35, max: 60, step: 1, value: 48 },
13
+ { key: 'weight', label: 'Weight', type: 'range', min: 0.1, max: 0.2, step: 0.005, value: 0.14 },
14
+ { key: 'bend', label: 'Bend', type: 'choice', options: ['round', 'flat'], value: 'flat' },
15
+ { key: 'double', label: 'Doubled', type: 'toggle', value: false },
16
+ { key: 'waist', label: 'Waist', type: 'range', min: 1, max: 3, step: 0.1, value: 1.4 },
17
+ { key: 'flat', label: 'Flat bend width', type: 'range', min: 0.08, max: 0.3, step: 0.01, value: 0.16 },
18
+ ];
19
+
20
+ /** A polyline with each inner corner rounded: a quadratic curve `r` back along both legs (never past half a leg). */
21
+ function fillet(pts, r) {
22
+ const out = [pts[0]];
23
+ for (let k = 1; k < pts.length - 1; k++) {
24
+ const [a, v, b] = [pts[k - 1], pts[k], pts[k + 1]];
25
+ const la = Math.hypot(a[0] - v[0], a[1] - v[1]), lb = Math.hypot(b[0] - v[0], b[1] - v[1]), d = Math.min(r, la * 0.49, lb * 0.49);
26
+ const p1 = [v[0] + ((a[0] - v[0]) * d) / la, v[1] + ((a[1] - v[1]) * d) / la], p2 = [v[0] + ((b[0] - v[0]) * d) / lb, v[1] + ((b[1] - v[1]) * d) / lb];
27
+ for (let i = 0; i <= 10; i++) { const t = i / 10, u = 1 - t; out.push([u * u * p1[0] + 2 * u * t * v[0] + t * t * p2[0], u * u * p1[1] + 2 * u * t * v[1] + t * t * p2[1]]); }
28
+ }
29
+ out.push(pts.at(-1));
30
+ return out;
31
+ }
32
+
33
+ /** One V opening upward with its bend at (cx, y), arms rising at `deg` from level to past the box: its centreline, the bend rounded or cut flat. */
34
+ function vee(y, deg, T, bend, flat) {
35
+ const k = Math.tan((deg * Math.PI) / 180), reach = BOX.size * 0.7;
36
+ const half = bend === 'flat' ? flat * BOX.size : 0;
37
+ const pts = half ? [[BOX.cx - half - reach, y - reach * k], [BOX.cx - half, y], [BOX.cx + half, y], [BOX.cx + half + reach, y - reach * k]] : [[BOX.cx - reach, y - reach * k], [BOX.cx, y], [BOX.cx + reach, y - reach * k]];
38
+ return fillet(pts, bend === 'round' ? T * 1.6 : T * 0.6);
39
+ }
40
+
41
+ /** The mark for resolved params. */
42
+ export function build(p) {
43
+ const T = p.weight * BOX.size, waist = GAP * p.waist;
44
+ // the upper V's bend sits half the waist above the middle; the second V outside it, a gap further up
45
+ const y1 = BOX.cy - waist / 2 - T / 2, paths = [vee(y1, p.angle, T, p.bend, p.flat)];
46
+ if (p.double) paths.push(vee(y1 - (T + GAP) / Math.cos((p.angle * Math.PI) / 180), p.angle, T, p.bend, p.flat));
47
+ const mirrored = paths.map((q) => q.map(([x, y]) => [x, 2 * BOX.cy - y]));
48
+ const fs = [...paths, ...mirrored].map((q) => sdPath(q, T));
49
+ const box = sdBox(BOX.cx, BOX.cy, BOX.size, BOX.size);
50
+ return tidy(shapeOf((x, y) => Math.max(Math.min(...fs.map((f) => f(x, y))), box(x, y)), { h: 2, x0: BOX.x0 - 4, y0: BOX.y0 - 4, x1: BOX.x1 + 4, y1: BOX.y1 + 4 }));
51
+ }
52
+
53
+ /** Two to four bands cut by the box's edge. */
54
+ export const guard = { maxThinShare: 0.05 };
55
+
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Zigzag: a shape drawn in level stripes, broken top to bottom by a zigzag the gap wide, the stripes on one side slid
3
+ * half a step up so the break shows. After the striped disc with a chevron break in the owner's references.
4
+ */
5
+ import { U, D, I, rect, poly, stroke } from '@logomarks/core/geometry';
6
+ import { BOX, GAP, tidy } from '../draw.js';
7
+ import { primitive } from '../shapes.js';
8
+
9
+ /** @type {import('../index.js').Control[]} */
10
+ export const controls = [
11
+ { key: 'shape', label: 'Shape', type: 'choice', options: ['circle', 'square', 'hexagon', 'half'], value: 'circle' },
12
+ { key: 'stripes', label: 'Stripes', type: 'range', min: 4, max: 8, step: 1, value: 5 },
13
+ { key: 'weight', label: 'Weight', type: 'range', min: 0.5, max: 0.75, step: 0.01, value: 0.62 },
14
+ { key: 'teeth', label: 'Zigs', type: 'range', min: 1, max: 3, step: 1, value: 2 },
15
+ { key: 'swing', label: 'Swing', type: 'range', min: 0.1, max: 0.3, step: 0.01, value: 0.18 },
16
+ { key: 'at', label: 'Where', type: 'range', min: 0.35, max: 0.65, step: 0.01, value: 0.45 },
17
+ { key: 'slide', label: 'Slide', type: 'range', min: 0.3, max: 0.7, step: 0.01, value: 0.5 },
18
+ ];
19
+
20
+ /** The silhouette, filling the box. */
21
+ function silhouette(shape) {
22
+ const { x0, y0, size, cx, cy } = BOX;
23
+ if (shape === 'hexagon') return poly(Array.from({ length: 6 }, (_, k) => { const a = (Math.PI / 3) * k; return [cx + (size / 2) * Math.cos(a), cy + (size / 2) * Math.sin(a)]; }));
24
+ return primitive(shape, x0, y0, size, size);
25
+ }
26
+
27
+ /** The mark for resolved params. */
28
+ export function build(p) {
29
+ const n = p.stripes, pitch = BOX.size / n, gap = Math.max(GAP, pitch * (1 - p.weight)), w = pitch - gap;
30
+ const stripes = (shift) => U(...Array.from({ length: n + 2 }, (_, k) => rect(BOX.x0 - 40, BOX.y0 + (k - 1) * pitch + gap / 2 + shift, BOX.size + 80, w)));
31
+ // the zigzag: `teeth` full swings from top to bottom about x = at
32
+ const xs = BOX.x0 + p.at * BOX.size, A = p.swing * BOX.size, steps = p.teeth * 2;
33
+ const zig = Array.from({ length: steps + 1 }, (_, i) => [xs + (i % 2 ? A : -A) / 2, BOX.y0 - 10 + ((BOX.size + 20) * i) / steps]);
34
+ const left = poly([[BOX.x0 - 60, BOX.y0 - 10], ...zig, [BOX.x0 - 60, BOX.y1 + 10]]);
35
+ const body = silhouette(p.shape);
36
+ const a = I(stripes(0), left), b = D(stripes(pitch * p.slide), left);
37
+ const s = D(I(U(a, b), body), stroke(zig, GAP, {}));
38
+ return tidy(s);
39
+ }
40
+
41
+ /** Stripes are many pieces by design. */
42
+ export const guard = { maxPieces: 26 };
package/src/tuning.js CHANGED
@@ -18,16 +18,16 @@ export const TUNING = {
18
18
  shapeA: of('square', 'half', 'quarter', 'triangle', 'parallelogram', 'pill', 'diamond', 'leaf'), shapeB: of('square', 'half', 'quarter', 'triangle', 'parallelogram', 'pill', 'diamond', 'leaf'), shapeC: of('square', 'half', 'quarter', 'triangle', 'parallelogram', 'pill', 'diamond', 'leaf') },
19
19
  shear: { rows: R(1, 2), cols: R(2, 3), lean: of('same', 'rows', 'chevron'), angle: R(18, 32), drop: { rare: 0.25 }, spacing: R(1, 1.5), taper: rare(0.12, 0.1, 0.3), lengths: { rare: 0.3 }, slide: rare(0.2, 0.15, 0.4) },
20
20
  turns: { count: of('3', '4', '5', '6'), size: R(0.32, 0.46), stretch: rare(0.3, 0.8, 1.4), radius: R(0.06, 0.26), tilt: rare(0.35, -30, 30) },
21
- burst: { rays: R(5, 10), ray: of('bar', 'wedge', 'pill', 'drop'), width: R(0.1, 0.18), inner: R(0.06, 0.28), alternate: rare(0.2, 0.2, 0.45), twist: rare(0.2, -30, 30), move: { rare: 0.35 } },
21
+ burst: { rays: R(5, 10), ray: of('bar', 'wedge', 'pill', 'drop', 'flare'), width: R(0.1, 0.18), inner: R(0.06, 0.28), alternate: rare(0.2, 0.2, 0.45), twist: rare(0.2, -30, 30), move: { rare: 0.35 } },
22
22
  tiles: { grid: R(2, 3), density: R(0.72, 1), symmetry: of('mirror', 'both', 'turn') },
23
- route: { tracks: R(1, 1), steps: R(2, 3), weight: R(0.14, 0.2), node: of('none', 'diamond', 'square'), ends: of('square', 'node'), frame: { rare: 0.12 }, turns: { rare: 0.3 } },
23
+ route: { body: { rare: 0.15 }, tracks: R(1, 1), steps: R(2, 3), weight: R(0.14, 0.2), node: of('none', 'diamond', 'square'), ends: of('square', 'node'), frame: { rare: 0.12 }, turns: { rare: 0.3 } },
24
24
  arcs: { count: R(2, 3), weight: R(0.55, 0.8), core: { rare: 0.3 }, legs: R(0, 0.45), move: { rare: 0.3 }, corner: { rare: 0.35 }, slant: rare(0.1, -15, 15) },
25
25
  // rings: three to five rings (two, one heavy round a slotted middle, is a dial or a knob; three gaps on few rings, a car
26
26
  // badge), every body, gaps that turn
27
27
  rings: { count: R(3, 5), weight: R(0.5, 0.72), gaps: R(1, 2), gapSize: R(1.3, 2.6), spin: R(20, 60), centre: of('open', 'open', 'dot'), shape: of('circle', 'circle', 'rounded', 'square', 'chamfer', 'hexagon'), offset: { rare: 0 }, breakKind: { rare: 0.2 } }, // off centre by hand only: shuffled, rings crowd into a crescent
28
28
  stripes: { stripes: R(4, 7), weight: R(0.5, 0.75), angle: R(-60, 60), move: of('none', 'shift', 'wave', 'taper', 'slot'), cover: rare(0.25, 0.5, 0.85), ends: { rare: 0.3 } },
29
29
  // the arrowhead (the lead chevron solid) and the stem make an arrow or a download icon: by hand only
30
- chevrons: { count: R(2, 4), weight: R(0.5, 0.75), angle: R(75, 120), grow: rare(0.3, 0.15, 0.45), move: of('none', 'none', 'none', 'skip') },
30
+ chevrons: { count: R(2, 4), body: { rare: 0.2 }, soft: { rare: 0.15 }, weight: R(0.5, 0.75), angle: R(75, 120), grow: rare(0.3, 0.15, 0.45), move: of('none', 'none', 'none', 'skip') },
31
31
  waves: { count: R(2, 4), weight: R(0.55, 0.8), amplitude: R(0.05, 0.13), waves: R(0.75, 1.5), phase: rare(0.15, 30, 180), clip: { rare: 0.35 } },
32
32
  cut: { second: { rare: 0.2 } },
33
33
  split: { cuts: R(1, 2), twist: rare(0.15, 2, 6), spacing: R(1, 2) },
@@ -38,7 +38,7 @@ export const TUNING = {
38
38
  steps: { count: R(3, 5), tread: R(0.45, 1), gap: rare(0.25, 1.2, 2), roundTreads: rare(0.25, 0.2, 0.5) },
39
39
  hex: { rings: R(1, 1), density: R(0.5, 0.9), cell: { rare: 0.15 }, gap: R(1, 1.5) },
40
40
  iso: { grid: R(2, 3), height: R(1, 2), density: R(0.5, 1) },
41
- letter: { build: of('stencil', 'route', 'blocks'), weight: R(0.17, 0.26), slant: rare(0.12, -12, 12), spacing: R(1, 1.6) },
41
+ letter: { build: of('stencil', 'route', 'blocks', 'rails', 'hexfold', 'wedge'), weight: R(0.17, 0.26), slant: rare(0.12, -12, 12), spacing: R(1, 1.6) },
42
42
  arcstep: { steps: R(1, 3), weight: R(0.66, 0.86), rise: rare(0.3, 0.7, 1.3), ends: { rare: 0.3 } },
43
43
  halfsq: { grid: of('2x2'), rule: of('rows', 'same', 'checker', 'zigzag', 'diagonal'), spacing: R(1, 1.3) },
44
44
  invert: { count: R(1, 3), weight: R(0.5, 0.66), region: of('half', 'half', 'quarter', 'disc'), shape: of('circle', 'circle', 'circle', 'rounded', 'hexagon'), size: R(0.34, 0.5) },
@@ -62,6 +62,19 @@ export const TUNING = {
62
62
  corners: { reach: R(0.3, 0.5), second: rare(0.4, 0.5, 0.8), shape: of('square', 'square', 'square', 'wide', 'tall') },
63
63
  offset: { way: of('shadow', 'shadow', 'knock', 'keep'), shift: R(0.2, 0.36), copies: R(1, 1), spacing: R(1, 1.3) },
64
64
  quarters: { pattern: of('four', 'four', 'diagonal', 'three', 'rows'), spacing: R(1, 1.4) },
65
+ // the reference styles (2026-11-27): each shuffled about its reference's construction
66
+ // M, N and W draw their diagonals in single triangles: by hand only
67
+ mosaic: { char: of(...'ABCDEFGHJKLPRSTUVXYZ'), tiles: of('mixed', 'mixed', 'round', 'angled'), parted: { rare: 0.15 }, corners: of('outer'), width: R(0.9, 1.25) },
68
+ // three swells crowd the crossings at 32 px: by hand only
69
+ weave: { strands: of(2), swells: R(2, 2), height: R(0.34, 0.66), weight: R(0.07, 0.09), ring: of('ring', 'ring', 'ring', 'none'), tilt: rare(0.5, -25, 25) },
70
+ notch: { depth: R(0.28, 0.42), mouth: R(0.52, 0.74), seat: of('diamond', 'diamond', 'diamond', 'none'), width: R(0.72, 0.98), height: R(0.52, 0.95) },
71
+ nodes: { nodes: R(4, 5), size: R(0.15, 0.22), ring: R(0.12, 0.2), hole: R(0.22, 0.36), neck: R(0.45, 0.85), shape: of('round', 'round', 'square'), sizes: { rare: 0.25 }, spin: R(0, 45) },
72
+ xband: { angle: R(42, 56), weight: R(0.12, 0.17), bend: of('flat', 'flat', 'round'), double: { rare: 0.3 }, waist: R(1.1, 1.8), flat: R(0.1, 0.2) },
73
+ mirror: { body: of('hexagon', 'square', 'octagon', 'disc'), weight: R(0.24, 0.32), bow: R(1.1, 1.6), bowl: R(0.74, 1), symmetry: of('two', 'four', 'four'), bands: R(1, 3), centre: of('bands', 'diamond', 'square', 'none'), ground: of('ink', 'ink', 'cut') },
74
+ ribbon: { path: of('step', 'stairs', 'flight', 'wave'), weight: R(0.23, 0.31), bend: R(0.8, 1.2), slot: R(0.45, 0.65), width: R(0.78, 0.92), reach: R(0.32, 0.68), slots: of('one', 'one', 'two', 'none'), ends: of('box', 'round'), turns: of('round', 'crease'), slant: rare(0.35, -22, 22) },
75
+ field: { bars: R(6, 9), weight: R(0.58, 0.72), depth: R(0.3, 0.55), slide: R(0.15, 0.35), drop: R(0.4, 1.4) },
76
+ zigzag: { stripes: R(4, 6), weight: R(0.55, 0.7), teeth: R(1, 2), swing: R(0.14, 0.24), at: R(0.4, 0.6), slide: R(0.4, 0.6) },
77
+ halfstripe: { bars: R(3, 5), solid: R(0.44, 0.58), step: R(0.05, 0.14), weight: R(0.5, 0.7) },
65
78
  };
66
79
 
67
80
  /** The two to four controls of each recipe that decide the mark: a page shows these first, the rest under "More". */
@@ -80,4 +93,42 @@ export const MAIN = {
80
93
  merge: ['a', 'b', 'width', 'side'], overlap: ['a', 'b', 'way', 'layout'], counter: ['body', 'hole', 'size', 'place'], pair: ['a', 'b', 'at', 'spin'],
81
94
  corners: ['nw', 'ne', 'se', 'sw'],
82
95
  offset: ['shape', 'way', 'dir', 'shift'], quarters: ['a', 'b', 'pattern', 'rule'],
96
+ mosaic: ['char', 'tiles', 'parted'], weave: ['strands', 'swells', 'height', 'ring'], notch: ['body', 'depth', 'seat', 'split'], nodes: ['nodes', 'size', 'hole', 'neck'],
97
+ xband: ['angle', 'weight', 'bend', 'double'], mirror: ['symmetry', 'bands', 'centre', 'body'], ribbon: ['path', 'turns', 'ends', 'slots'], field: ['bars', 'profile', 'slide', 'widths'],
98
+ zigzag: ['shape', 'stripes', 'teeth', 'slide'], halfstripe: ['shape', 'bars', 'step'],
83
99
  };
100
+
101
+ /**
102
+ * Safe turns: the turns and mirror a shuffle may give each recipe's mark, about one shuffle in three (the Turn and Mirror
103
+ * finish controls, so nothing new shows and saved settings keep working). Every mark is refitted after turning, so a turn
104
+ * never breaks the grid; what it can do is change what a mark reads as, so each list is only the turns that keep it what
105
+ * it was, judged from sheets of turned shuffles (2026-11-27). Left without turns:
106
+ * - letters and the sun stay upright: letter, mosaic, horizon;
107
+ * - turned they point, an arrow, a play button or a skip icon: chevrons, notch;
108
+ * - iso keeps its light from one side: iso;
109
+ * - turned they are another sign: bars or slanted bars on their side (a menu icon), arcs upside down (a magnet);
110
+ * - already the same every quarter turn, a turn adds nothing: rings, burst, bloom, loops, nodes, turns.
111
+ * Stack, Bars, Shear, Leaf Tiles and Trine take the mirror only (a stack turned is a figure the other way up; shear on
112
+ * its side is a menu icon; the others are symmetric under quarter turns). Steps and Ribbon take a half turn only (steps on their
113
+ * side are signal bars; a ribbon's wave on its side is an S), Flare no half turn (from a foot, turned over, a rising sun).
114
+ */
115
+ const Q = { turns: ['0', '90', '180', '270'], mirror: true };
116
+ const HALF = { turns: ['0', '90'], mirror: false };
117
+ const HALF_M = { turns: ['0', '90'], mirror: true };
118
+ const MIRROR = { turns: ['0'], mirror: true };
119
+ const NONE = { turns: ['0'], mirror: false };
120
+ export const TURNS = {
121
+ twin: Q, cut: Q, split: Q, arcstep: Q, seam: Q, bands: Q, stripes: Q, spiral: Q, blades: Q,
122
+ halfsq: Q, quarters: Q, merge: Q, pair: Q, offset: Q, overlap: Q, counter: Q, corners: Q, capsules: Q,
123
+ // steps on their side are signal bars; flare from a foot turned over is a rising sun
124
+ steps: { turns: ['0', '180'], mirror: true }, flare: { turns: ['0', '90', '270'], mirror: true },
125
+ wavecut: Q, halfstripe: Q,
126
+ // a ribbon's wave on its side is an S
127
+ ribbon: { turns: ['0', '180'], mirror: true }, invert: Q, route: Q, bite: Q, lobes: Q, tiles: Q,
128
+ mirror: HALF, xband: HALF, zigzag: HALF_M, field: HALF_M, weave: HALF, hex: HALF, links: HALF_M, strips: HALF_M, waves: HALF_M,
129
+ stack: MIRROR, bars: MIRROR, leaves: MIRROR, trine: MIRROR, shear: MIRROR,
130
+ letter: NONE, mosaic: NONE, horizon: NONE, chevrons: NONE, notch: NONE, iso: NONE, arcs: NONE,
131
+ rings: NONE, burst: NONE, bloom: NONE, loops: NONE, nodes: NONE, turns: NONE,
132
+ };
133
+ /** How often a shuffle turns or mirrors a mark (of the turns its recipe allows). */
134
+ export const TURN_SHARE = 1 / 3;