@logomarks/generate 0.4.2 → 0.6.0
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.
- package/CHANGELOG.md +55 -0
- package/README.md +74 -4
- package/package.json +1 -1
- package/src/finish.js +18 -10
- package/src/generate.js +98 -1
- package/src/index.d.ts +33 -2
- package/src/index.js +2 -1
- package/src/presets.js +14 -0
- package/src/raster.js +1 -1
- package/src/recipes/bubble.js +90 -0
- package/src/recipes/check.js +77 -0
- package/src/recipes/clash.js +13 -0
- package/src/recipes/cloud.js +98 -0
- package/src/recipes/crossover.js +14 -0
- package/src/recipes/duo.js +395 -0
- package/src/recipes/index.js +20 -0
- package/src/recipes/layers.js +66 -0
- package/src/recipes/letter.js +2 -2
- package/src/recipes/peak.js +91 -0
- package/src/recipes/splitchar.js +14 -0
- package/src/recipes/tucked.js +17 -0
- package/src/tuning.js +31 -2
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layers: two to four plates stacked with the house gap between them, the "platform" mark of the owner's tech-brand
|
|
3
|
+
* audit (2026-11-27). Each plate is a flat rhombus, a rhombus with round corners, a chevron (a rhombus's lower half, so
|
|
4
|
+
* the stack reads from above), or a slab (a rhombus with a thickness below it). Laid as a stack (each plate showing only
|
|
5
|
+
* what the one above leaves, the gap round it), apart (whole plates a gap apart), offset (each a step to one side) or
|
|
6
|
+
* tapered (each smaller than the one below). Never level bars (a menu icon): every plate is a rhombus or a part of one.
|
|
7
|
+
* The plain stack of three equal rhombus plates is one company's mark and the UI "layers" icon: a shuffle always adds a
|
|
8
|
+
* move (a thickness, an offset, a taper, a fourth plate or an outlined top).
|
|
9
|
+
*/
|
|
10
|
+
import { U, D, poly, grow, roundPoly } from '@logomarks/core/geometry';
|
|
11
|
+
import { BOX, GAP, tidy } from '../draw.js';
|
|
12
|
+
|
|
13
|
+
/** @type {import('../index.js').Control[]} */
|
|
14
|
+
export const controls = [
|
|
15
|
+
{ key: 'plate', label: 'Plate', type: 'choice', options: ['rhombus', 'rounded', 'chevron', 'slab'], value: 'slab' },
|
|
16
|
+
{ key: 'count', label: 'Plates', type: 'range', min: 2, max: 4, step: 1, value: 3 },
|
|
17
|
+
{ key: 'lay', label: 'Laid', type: 'choice', options: ['stack', 'apart', 'offset', 'taper'], value: 'offset' },
|
|
18
|
+
{ key: 'flat', label: 'Flatness', type: 'range', min: 0.36, max: 0.62, step: 0.01, value: 0.5 },
|
|
19
|
+
{ key: 'pitch', label: 'Pitch', type: 'range', min: 0.18, max: 0.42, step: 0.01, value: 0.26 },
|
|
20
|
+
{ key: 'shift', label: 'Offset', type: 'range', min: 0.06, max: 0.2, step: 0.01, value: 0.12 },
|
|
21
|
+
{ key: 'top', label: 'Top plate', type: 'choice', options: ['solid', 'outline'], value: 'solid' },
|
|
22
|
+
{ key: 'thick', label: 'Slab thickness', type: 'range', min: 0.1, max: 0.24, step: 0.01, value: 0.15 },
|
|
23
|
+
{ key: 'spacing', label: 'Gap', type: 'range', min: 1, max: 1.6, step: 0.05, value: 1.15 },
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
/** A rhombus plate `w` wide and `h` tall about (cx, cy), with a slab's thickness `t` hung below its front edges. */
|
|
27
|
+
function plate(cx, cy, w, h, kind, t, soft) {
|
|
28
|
+
const top = [[cx, cy - h / 2], [cx + w / 2, cy], [cx, cy + h / 2], [cx - w / 2, cy]];
|
|
29
|
+
if (kind === 'slab' && t > 0) return poly([[cx, cy - h / 2], [cx + w / 2, cy], [cx + w / 2, cy + t], [cx, cy + h / 2 + t], [cx - w / 2, cy + t], [cx - w / 2, cy]]);
|
|
30
|
+
if (kind === 'rounded') return [roundPoly(top, soft)];
|
|
31
|
+
return poly(top);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** The mark for resolved params. */
|
|
35
|
+
export function build(q) {
|
|
36
|
+
// flat plates stacked plain (rhombus, rounded or chevron, the top solid) are the UI layers icon and one company's mark:
|
|
37
|
+
// they always taper
|
|
38
|
+
// they always taper. Slabs stacked straight or tapered outline one hexagon or pyramid, two other brands' marks: slabs
|
|
39
|
+
// always step aside
|
|
40
|
+
const p = q.plate === 'slab' && q.lay !== 'offset' ? { ...q, lay: 'offset' } : q.lay === 'stack' && q.top === 'solid' ? { ...q, lay: 'taper' } : q;
|
|
41
|
+
const g = GAP * p.spacing, n = p.count, W = BOX.size * 0.92, h = W * p.flat;
|
|
42
|
+
const t = p.plate === 'slab' ? BOX.size * p.thick : 0;
|
|
43
|
+
// apart: whole plates, each a gap below the last; otherwise they overlap by the pitch
|
|
44
|
+
const pitch = p.lay === 'apart' ? (p.plate === 'chevron' ? h * 0.5 : h * 0.5 + t) + g : BOX.size * p.pitch;
|
|
45
|
+
const total = h + t + pitch * (n - 1), y0 = BOX.cy - total / 2 + h / 2;
|
|
46
|
+
const plates = [];
|
|
47
|
+
for (let k = 0; k < n; k++) {
|
|
48
|
+
const scale = p.lay === 'taper' ? 1 - (n - 1 - k) * 0.16 : 1;
|
|
49
|
+
const dx = p.lay === 'offset' ? (k - (n - 1) / 2) * BOX.size * p.shift : 0;
|
|
50
|
+
plates.push(plate(BOX.cx + dx, y0 + k * pitch, W * scale, h * scale, p.plate === 'chevron' ? 'rhombus' : p.plate, t * scale, h * 0.22 * scale));
|
|
51
|
+
}
|
|
52
|
+
// from the top down: each plate keeps what the ones above leave it, the gap round them
|
|
53
|
+
let s = [], above = [];
|
|
54
|
+
for (const [k, pl] of plates.entries()) {
|
|
55
|
+
let piece = above.length ? D(pl, grow(U(...above), g)) : pl;
|
|
56
|
+
// a chevron plate is the lower half of a rhombus: the top plate stays whole, the rest only their fronts
|
|
57
|
+
if (p.plate === 'chevron' && k > 0) piece = D(piece, poly([[BOX.cx - BOX.size, y0 + k * pitch], [BOX.cx + BOX.size, y0 + k * pitch], [BOX.cx + BOX.size, BOX.y0 - BOX.size], [BOX.cx - BOX.size, BOX.y0 - BOX.size]]));
|
|
58
|
+
if (k === 0 && p.top === 'outline') piece = D(piece, grow(pl, -Math.max(GAP * 1.3, h * 0.2)));
|
|
59
|
+
s = s.length ? U(s, piece) : piece;
|
|
60
|
+
above.push(pl);
|
|
61
|
+
}
|
|
62
|
+
return tidy(s);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Plates and their fronts. */
|
|
66
|
+
export const guard = {};
|
package/src/recipes/letter.js
CHANGED
|
@@ -55,7 +55,7 @@ const BITMAP = {
|
|
|
55
55
|
9: ['.###.', '#...#', '#...#', '.####', '....#', '....#', '.###.'],
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
const CHARS = [...'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'];
|
|
58
|
+
export const CHARS = [...'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'];
|
|
59
59
|
const NUMERAL = { 0: 'Zero', 1: 'One', 2: 'Two', 3: 'Three', 4: 'Four', 5: 'Five', 6: 'Six', 7: 'Seven', 8: 'Eight', 9: 'Nine' };
|
|
60
60
|
|
|
61
61
|
/** @type {import('../index.js').Control[]} */
|
|
@@ -97,7 +97,7 @@ function bitmapLetter(ch, build, p) {
|
|
|
97
97
|
/* ---------- the skeleton builds ---------- */
|
|
98
98
|
|
|
99
99
|
/** The letter's skeleton at cap height H: core's, with an I (bars top and foot) core doesn't have. */
|
|
100
|
-
function skeleton(ch, H) {
|
|
100
|
+
export function skeleton(ch, H) {
|
|
101
101
|
if (ch === 'I') { const w = H * 0.72; return [skStroke(skLine([0, 0], [w, 0])), skStroke(skLine([w / 2, 0], [w / 2, H]), ['j', 'j']), skStroke(skLine([0, H], [w, H]))]; }
|
|
102
102
|
return SKEL[NUMERAL[ch] || ch](H);
|
|
103
103
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Peak: the letter A drawn as a peak, the commonest single letter of the owner's tech-brand audit (2026-11-27): two heavy
|
|
3
|
+
* legs meeting at the apex, no crossbar, and ONE move: the right leg parted from the apex by the gap, a slot run up one
|
|
4
|
+
* leg, the feet cut off by a level gap, a small triangle seated in the counter for the crossbar, or a second peak nested
|
|
5
|
+
* under the first. The apex pointed or cut flat; the feet level or cut square to the legs. A rounded apex, and a wide
|
|
6
|
+
* peak, crowd tech brands' own A marks (the owner's audit references): the apex stays sharp or flat and the A narrow. It always reads as an
|
|
7
|
+
* A: taller than wide (a wide, low peak is a caret), heavy legs (a thin one is the ^ key), nothing up the middle (an
|
|
8
|
+
* arrow's stem), the counter open at the foot. It never turns (an A on its side is a chevron, an arrow).
|
|
9
|
+
*/
|
|
10
|
+
import { U, D, I, poly, rect, circle, grow, mitreBand } from '@logomarks/core/geometry';
|
|
11
|
+
import { BOX, GAP, tidy } from '../draw.js';
|
|
12
|
+
|
|
13
|
+
/** @type {import('../index.js').Control[]} */
|
|
14
|
+
export const controls = [
|
|
15
|
+
{ key: 'move', label: 'Move', type: 'choice', options: ['part', 'slot', 'feet', 'seat', 'nest', 'none'], value: 'part' },
|
|
16
|
+
{ key: 'apex', label: 'Apex', type: 'choice', options: ['point', 'flat'], value: 'flat' },
|
|
17
|
+
{ key: 'feet', label: 'Feet', type: 'choice', options: ['level', 'square'], value: 'level' },
|
|
18
|
+
{ key: 'width', label: 'Width', type: 'range', min: 0.58, max: 0.78, step: 0.01, value: 0.68 },
|
|
19
|
+
{ key: 'weight', label: 'Leg weight', type: 'range', min: 0.18, max: 0.3, step: 0.005, value: 0.23 },
|
|
20
|
+
{ key: 'contrast', label: 'Thin left leg', type: 'range', min: 0.6, max: 1, step: 0.01, value: 1 },
|
|
21
|
+
{ key: 'at', label: 'Cut at', type: 'range', min: 0.2, max: 0.45, step: 0.01, value: 0.3 },
|
|
22
|
+
{ key: 'spacing', label: 'Gap', type: 'range', min: 1, max: 1.7, step: 0.05, value: 1.2 },
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
/** An A peak `W` wide and `H` tall on the baseline `yb`, its legs `wl` and `wr` wide: the solid, its apex and feet shaped. */
|
|
26
|
+
function peak(cx, yb, W, H, wl, wr, p) {
|
|
27
|
+
const top = [cx, yb - H], L = [cx - W / 2, yb], R = [cx + W / 2, yb];
|
|
28
|
+
// each leg a band along its outer edge, run on past the apex and the foot, then clipped
|
|
29
|
+
const far = H * 0.6, run = (a, b, k) => [a[0] + (a[0] - b[0]) * k, a[1] + (a[1] - b[1]) * k];
|
|
30
|
+
const inset = (a, b, w, side) => {
|
|
31
|
+
const dx = b[0] - a[0], dy = b[1] - a[1], l = Math.hypot(dx, dy), nx = (-dy / l) * side, ny = (dx / l) * side;
|
|
32
|
+
return [[a[0] + nx * w / 2, a[1] + ny * w / 2], [b[0] + nx * w / 2, b[1] + ny * w / 2]];
|
|
33
|
+
};
|
|
34
|
+
const [l0, l1] = inset(L, top, wl, 1), [r0, r1] = inset(R, top, wr, -1);
|
|
35
|
+
const legs = U(mitreBand([run(l0, l1, 0.2), run(l1, l0, far / H)], wl), mitreBand([run(r0, r1, 0.2), run(r1, r0, far / H)], wr));
|
|
36
|
+
// clip: the outline of the A (its outer edges, the baseline), its apex pointed or cut flat
|
|
37
|
+
const tri = poly([L, top, R]);
|
|
38
|
+
let clip = tri;
|
|
39
|
+
if (p.apex === 'flat') clip = D(tri, rect(cx - W, yb - H - 4, W * 2, H * 0.09 + 4));
|
|
40
|
+
let s = I(legs, clip);
|
|
41
|
+
if (p.feet === 'square') {
|
|
42
|
+
// the feet cut square to each leg instead of level
|
|
43
|
+
const fl = poly([[L[0] - W, yb + 4], [L[0] + wl * 1.4, yb + 4], [L[0] - W, yb - W * 0.7]]), fr = poly([[R[0] + W, yb + 4], [R[0] - wr * 1.4, yb + 4], [R[0] + W, yb - W * 0.7]]);
|
|
44
|
+
s = D(s, U(fl, fr));
|
|
45
|
+
}
|
|
46
|
+
return s;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** The mark for resolved params. */
|
|
50
|
+
export function build(p) {
|
|
51
|
+
const g = GAP * p.spacing, H = BOX.size, W = H * p.width, yb = BOX.cy + H / 2, cx = BOX.cx;
|
|
52
|
+
const wr = W * p.weight, wl = wr * p.contrast;
|
|
53
|
+
const a = peak(cx, yb, W, H, wl, wr, p);
|
|
54
|
+
if (p.move === 'part') {
|
|
55
|
+
// the right leg parted: a gap square across it, `at` of the way down from the apex
|
|
56
|
+
// at the height where the counter's apex meets the right leg's inner edge, so the cut runs right through the leg
|
|
57
|
+
const half = Math.atan2(W / 2, H), ca = Math.min(0.8, (wl + wr) / 2 / Math.sin(half) / H);
|
|
58
|
+
const t = ca + (p.at - 0.3) * 0.3, pt = [cx + (W / 2) * t, yb - H + H * t], l = Math.hypot(H, W / 2), n = [H / l, -(W / 2) / l];
|
|
59
|
+
const cut = mitreBand([[pt[0] - n[0] * W, pt[1] - n[1] * W], [pt[0] + n[0] * W, pt[1] + n[1] * W]], g);
|
|
60
|
+
return tidy(D(a, I(cut, rect(cx + 1, BOX.y0 - 4, W, H + 8))));
|
|
61
|
+
}
|
|
62
|
+
if (p.move === 'slot') {
|
|
63
|
+
// a slot run up the middle of the right leg from its foot
|
|
64
|
+
const k = (1 - p.at * 1.4), foot = [cx + W / 2 - wr / 2, yb + 4], up = [cx + (W / 2 - wr / 2) * k, yb - H * (1 - k) + 4];
|
|
65
|
+
return tidy(D(a, mitreBand([foot, up], g * 0.9)));
|
|
66
|
+
}
|
|
67
|
+
if (p.move === 'feet') {
|
|
68
|
+
// the feet cut off by a level gap, low on the legs
|
|
69
|
+
return tidy(D(a, rect(cx - W, yb - H * p.at * 0.8 - g / 2, W * 2, g)));
|
|
70
|
+
}
|
|
71
|
+
if (p.move === 'seat') {
|
|
72
|
+
// the crossbar's place: the counter's own top, a gap clear of the legs, cut level below — a small triangle seated
|
|
73
|
+
// in the counter
|
|
74
|
+
const counter = D(poly([[cx - W / 2, yb], [cx, yb - H], [cx + W / 2, yb]]), grow(a, g));
|
|
75
|
+
const low = yb - H * (0.1 + p.at * 0.3);
|
|
76
|
+
const seat = tidy(I(counter, rect(cx - W, BOX.y0 - 8, W * 2, low - BOX.y0 + 8)));
|
|
77
|
+
// legs so heavy the counter has no room for it (or only a crumb the tidy drops): the feet cut instead, never a bare A
|
|
78
|
+
const out = tidy(U(a, seat));
|
|
79
|
+
if (!seat.length || out.length <= tidy(a).length) return tidy(D(a, rect(cx - W, yb - H * p.at * 0.8 - g / 2, W * 2, g)));
|
|
80
|
+
return out;
|
|
81
|
+
}
|
|
82
|
+
if (p.move === 'nest') {
|
|
83
|
+
// a smaller peak nested under the first, a gap below its apex, standing on the same baseline
|
|
84
|
+
const H2 = H * 0.5, W2 = W * 0.5, inner = peak(cx, yb, W2, H2, wl * 0.7, wr * 0.7, { ...p, apex: p.apex === 'flat' ? 'point' : p.apex });
|
|
85
|
+
return tidy(U(a, D(inner, grow(a, g))));
|
|
86
|
+
}
|
|
87
|
+
return tidy(a);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** Two legs and their move. */
|
|
91
|
+
export const guard = {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Split letter: one character cut in two, the halves in unlike treatments: ink and cut out, or two builds (./duo.js). */
|
|
2
|
+
import { SHARED, splitchar } from './duo.js';
|
|
3
|
+
|
|
4
|
+
/** @type {import('../index.js').Control[]} */
|
|
5
|
+
export const controls = [
|
|
6
|
+
{ ...SHARED.charA, label: 'Letter', value: 'D' },
|
|
7
|
+
{ key: 'axis', label: 'Cut', type: 'choice', options: ['upright', 'level', 'diagonal'], value: 'upright' },
|
|
8
|
+
{ ...SHARED.treatB, label: 'Second half', options: ['knockout', 'build'], value: 'build' },
|
|
9
|
+
SHARED.buildA, SHARED.buildB, SHARED.box, SHARED.weight, SHARED.gap,
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
/** The mark for resolved params. */
|
|
13
|
+
export const build = splitchar;
|
|
14
|
+
export const guard = { maxPieces: 26, maxThinShare: 0.1, minInkShare: 0.1 };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Tucked: a big initial with one or two small ones boxed at its corner, overlapping its edge (./duo.js). */
|
|
2
|
+
import { SHARED, tucked } from './duo.js';
|
|
3
|
+
|
|
4
|
+
/** @type {import('../index.js').Control[]} */
|
|
5
|
+
export const controls = [
|
|
6
|
+
{ ...SHARED.charA, value: 'R' }, SHARED.charB,
|
|
7
|
+
{ ...SHARED.buildA, value: 'serif' }, { ...SHARED.buildB, value: 'sans' },
|
|
8
|
+
{ ...SHARED.treatB, label: 'Small treatment', options: ['knockout', 'solid'], value: 'knockout' },
|
|
9
|
+
SHARED.box,
|
|
10
|
+
{ key: 'corner', label: 'Corner', type: 'choice', options: ['bottom', 'top'], value: 'bottom' },
|
|
11
|
+
{ key: 'size', label: 'Small size', type: 'range', min: 0.38, max: 0.54, step: 0.01, value: 0.46 },
|
|
12
|
+
SHARED.charC, SHARED.weight, SHARED.rim, SHARED.gap,
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
/** The mark for resolved params. */
|
|
16
|
+
export const build = tucked;
|
|
17
|
+
export const guard = { maxPieces: 34, maxThinShare: 0.1, minInkShare: 0.08 };
|
package/src/tuning.js
CHANGED
|
@@ -74,6 +74,26 @@ export const TUNING = {
|
|
|
74
74
|
ribbon: { path: of('step', 'stairs', 'flight', 'wave'), lanes: of('one', 'two'), 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
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
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
|
+
// two clouds stacked could be a weather icon (cloudy): one move in five
|
|
78
|
+
cloud: { puffs: R(2, 5), move: of('bands', 'split', 'slot', 'outline', 'stack'), height: R(0.58, 0.76), bands: R(2, 2), at: R(0.4, 0.6), angle: R(-32, 32), weight: R(0.11, 0.15), spacing: R(1.1, 1.5) },
|
|
79
|
+
// a stack of rhombus plates outlines a hexagon, and two or three of them crowd two tech brands' marks: shuffles step the
|
|
80
|
+
// plates aside or taper them, three or four
|
|
81
|
+
layers: { plate: of('rhombus', 'rounded', 'chevron', 'slab', 'slab'), count: R(3, 4), lay: of('offset', 'offset', 'taper'), flat: R(0.42, 0.56), pitch: R(0.2, 0.3), shift: R(0.12, 0.19), top: { rare: 0.25 }, thick: R(0.12, 0.18), spacing: R(1.05, 1.4) },
|
|
82
|
+
// a plain bubble is the chat icon itself, a slot across it a message icon: by hand only. A wide gap: tight, a solid
|
|
83
|
+
// bubble sits too close to tech brands' solid marks (the owner's audit references)
|
|
84
|
+
bubble: { body: of('disc', 'rounded', 'rounded', 'soft'), move: of('tail', 'pair', 'bands', 'glyph'), glyph: of('bar', 'quarter'), tailSize: R(0.18, 0.27), bands: R(2, 3), weight: R(0.14, 0.19), back: R(0.58, 0.74), spacing: R(1.4, 1.7) },
|
|
85
|
+
// the slab cut-out is a checkbox: by hand only
|
|
86
|
+
check: { move: of('heel', 'heel', 'double', 'triple', 'half'), weight: R(0.17, 0.24), angle: R(44, 58), short: R(0.38, 0.52), ends: of('square', 'level', 'round'), spacing: R(1.1, 1.5) },
|
|
87
|
+
// a plain peak is a bare A, and one company's: by hand only
|
|
88
|
+
peak: { move: of('part', 'slot', 'feet', 'seat', 'nest'), apex: of('point', 'flat'), feet: of('level', 'level', 'square'), width: R(0.62, 0.71), weight: R(0.2, 0.27), contrast: rare(0.3, 0.62, 0.85), at: R(0.24, 0.4), spacing: R(1.1, 1.5) },
|
|
89
|
+
// the contrast monograms (2026-11-28): initials a shuffle draws from the common ones; a third initial only by hand
|
|
90
|
+
duo: { charA: of(...'ABCDEFGHJKLMNPRSTW'), charB: of(...'ABCDEFGHJKLMNPRSTW'), layout: of('boxed', 'boxed', 'rings', 'cells', 'turned'), treatA: of('knockout', 'knockout', 'outline'), treatB: of('solid', 'solid', 'outline', 'knockout'),
|
|
91
|
+
buildA: of('sans', 'cut', 'wedge', 'blocks', 'route', 'stencil'), buildB: of('serif', 'serif', 'blackletter', 'sans', 'stencil'), box: of('rounded', 'square', 'circle'), join: of('apart', 'overlap'),
|
|
92
|
+
turnA: of('0', '270', '90'), turnB: of('90', '180', '270', 'mirror'), stretch: R(1.2, 1.5), weight: R(0.17, 0.24), rim: R(0.09, 0.13), gap: R(1, 1.4), charC: { rare: 0 } },
|
|
93
|
+
crossover: { charA: of(...'ABCDEFGJKLPRS'), charB: of(...'ABCDEFGHJKLMNPRSTW'), buildA: of('sans', 'cut', 'wedge'), buildB: of('sans', 'cut', 'wedge', 'stencil'), box: of('rounded', 'square'), overlap: R(0.16, 0.26), weight: R(0.18, 0.24), gap: R(1.1, 1.4) },
|
|
94
|
+
tucked: { charA: of(...'ABCDEFGHJKLMNPRSTW'), charB: of(...'ABCDEFGHJKLMNPRSTW'), buildA: of('sans', 'serif', 'serif', 'cut'), buildB: of('sans', 'sans', 'cut'), treatB: of('knockout'), box: of('rounded', 'square', 'circle'), corner: of('bottom', 'bottom', 'top'), size: R(0.4, 0.5), weight: R(0.18, 0.24), gap: R(1, 1.3), charC: { rare: 0 } },
|
|
95
|
+
clash: { charA: of(...'ABCDEFGHJKLMNPRSTW'), charB: of(...'ABCDEFGHJKLMNPRSTW'), buildA: of('sans', 'cut', 'wedge'), buildB: of('serif', 'serif', 'blackletter'), join: of('apart', 'interlock'), weight: R(0.18, 0.24), gap: R(1, 1.4), charC: { rare: 0 } },
|
|
96
|
+
splitchar: { charA: of(...'ABCDEFGHJKLMNPRSTUWZ'), axis: of('upright', 'upright', 'level', 'diagonal'), treatB: of('knockout', 'knockout', 'build'), buildA: of('sans', 'cut', 'wedge'), buildB: of('serif', 'serif', 'stencil'), box: of('rounded', 'square', 'circle'), weight: R(0.18, 0.24), gap: R(1, 1.4) },
|
|
77
97
|
halfstripe: { bars: R(3, 5), solid: R(0.44, 0.58), step: R(0.05, 0.14), weight: R(0.5, 0.7) },
|
|
78
98
|
};
|
|
79
99
|
|
|
@@ -96,6 +116,8 @@ export const MAIN = {
|
|
|
96
116
|
mosaic: ['char', 'tiles', 'parted'], weave: ['strands', 'swells', 'height', 'ring'], notch: ['body', 'depth', 'seat', 'split'], nodes: ['nodes', 'size', 'hole', 'neck'],
|
|
97
117
|
xband: ['angle', 'weight', 'bend', 'double'], mirror: ['symmetry', 'bands', 'centre', 'body'], ribbon: ['path', 'turns', 'ends', 'slots'], field: ['bars', 'profile', 'slide', 'widths'],
|
|
98
118
|
zigzag: ['shape', 'stripes', 'teeth', 'slide'], halfstripe: ['shape', 'bars', 'step'],
|
|
119
|
+
duo: ['charA', 'charB', 'layout', 'buildB'], crossover: ['charA', 'charB', 'overlap', 'box'], tucked: ['charA', 'charB', 'treatB', 'corner'], clash: ['charA', 'charB', 'buildB', 'join'], splitchar: ['charA', 'axis', 'treatB', 'buildB'],
|
|
120
|
+
cloud: ['puffs', 'move', 'rise', 'base'], layers: ['plate', 'count', 'lay', 'top'], bubble: ['body', 'move', 'tail', 'glyph'], check: ['move', 'weight', 'angle', 'ends'], peak: ['move', 'apex', 'width', 'weight'],
|
|
99
121
|
};
|
|
100
122
|
|
|
101
123
|
/**
|
|
@@ -107,7 +129,8 @@ export const MAIN = {
|
|
|
107
129
|
* - turned they point, an arrow, a play button or a skip icon: chevrons, notch;
|
|
108
130
|
* - iso keeps its light from one side: iso;
|
|
109
131
|
* - 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
|
|
132
|
+
* - already the same every quarter turn, a turn adds nothing: rings, burst, bloom, loops, nodes, turns;
|
|
133
|
+
* - a tick backwards or on its side is no tick: check.
|
|
111
134
|
* Stack, Bars, Shear, Leaf Tiles and Trine take the mirror only (a stack turned is a figure the other way up; shear on
|
|
112
135
|
* 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
136
|
* 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).
|
|
@@ -129,12 +152,18 @@ export const TURNS = {
|
|
|
129
152
|
stack: MIRROR, bars: MIRROR, leaves: MIRROR, trine: MIRROR, shear: MIRROR,
|
|
130
153
|
letter: NONE, mosaic: NONE, horizon: NONE, chevrons: NONE, notch: NONE, iso: NONE, arcs: NONE,
|
|
131
154
|
rings: NONE, burst: NONE, bloom: NONE, loops: NONE, nodes: NONE, turns: NONE,
|
|
155
|
+
// the tech-brand styles (2026-11-28): a cloud and a bubble keep level (a mirror moves the tail or the tallest puff);
|
|
156
|
+
// an A stays upright, its mirror the thin leg on the other side; a tick never turns or mirrors (a backwards tick is no
|
|
157
|
+
// tick); layers on their side read as a back or rewind arrow (judged from a sheet of turned shuffles): mirror only
|
|
158
|
+
cloud: MIRROR, bubble: MIRROR, peak: MIRROR, check: NONE, layers: MIRROR,
|
|
159
|
+
// letters stay as they are drawn (a turned pair is the Turned layout's own move)
|
|
160
|
+
duo: NONE, crossover: NONE, tucked: NONE, clash: NONE, splitchar: NONE,
|
|
132
161
|
};
|
|
133
162
|
/**
|
|
134
163
|
* Keys a shuffle draws once and holds across its tries (`shuffled()` keeps the best of a few draws by quality; where a
|
|
135
164
|
* recipe's forms score unalike, the best-of would always pick one form). Mirror's symmetry: the two-way emblem outscores
|
|
136
165
|
* the four-way one, so without this two-way won nearly every shuffle.
|
|
137
166
|
*/
|
|
138
|
-
export const HOLD = { mirror: ['symmetry'], ribbon: ['path'] };
|
|
167
|
+
export const HOLD = { duo: ['layout'], mirror: ['symmetry'], ribbon: ['path'], cloud: ['move'], bubble: ['move', 'body'], check: ['move'], peak: ['move'] };
|
|
139
168
|
/** How often a shuffle turns or mirrors a mark (of the turns its recipe allows). */
|
|
140
169
|
export const TURN_SHARE = 1 / 3;
|