@logomarks/generate 0.4.2 → 0.5.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 +13 -0
- package/README.md +34 -4
- package/package.json +1 -1
- package/src/finish.js +18 -10
- package/src/generate.js +1 -1
- package/src/index.d.ts +2 -2
- package/src/presets.js +9 -0
- package/src/recipes/bubble.js +90 -0
- package/src/recipes/check.js +77 -0
- package/src/recipes/cloud.js +98 -0
- package/src/recipes/index.js +10 -0
- package/src/recipes/layers.js +66 -0
- package/src/recipes/peak.js +91 -0
- package/src/tuning.js +20 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## 0.5.0 (2026-11-28)
|
|
5
|
+
|
|
6
|
+
- **Five recipes after the commonest tech-brand marks** (the owner's audit of 623 tech-brand icons): `cloud`, `layers`,
|
|
7
|
+
`bubble`, `check` and `peak` (the letter A as a peak), 60 in all. Each makes one construction move, never the plain
|
|
8
|
+
icon, with its bad reads ruled out in the build: no rain, bolt or sun in a cloud; no level bars in layers; no eyes,
|
|
9
|
+
three dots, lines of text or a magnifier in a bubble; no checkbox or verified disc for a tick; no caret, arrow stem or
|
|
10
|
+
rounded apex for an A. The defaults and 200 shuffles of each stay under 0.72 against the brands' own icons by the house
|
|
11
|
+
outline measure (cloud 0.717, layers 0.699, bubble 0.711, check 0.622, peak 0.632); stacks of rhombus plates, a disc
|
|
12
|
+
pair of bubbles, a rounded or wide A and a slab-cut tick were steered off because they crowded a brand.
|
|
13
|
+
- **A speech-bubble container**: `container: 'bubble'` in the finish, as a badge, a clip or a frame.
|
|
14
|
+
- `TUNING`, `MAIN`, `TURNS` (a cloud, a bubble, an A and layers mirror only; a tick never turns), `HOLD` (each new
|
|
15
|
+
recipe's move, and the bubble's body) and `MIX_WEIGHT` for the five; eight presets (55).
|
|
16
|
+
|
|
4
17
|
## 0.4.2 (2026-11-27)
|
|
5
18
|
|
|
6
19
|
- **Mirror:** four-way emblems are now most of a shuffle (34 of 47, from 16): `shuffled()` holds a recipe's `HOLD` keys
|
package/README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# @logomarks/generate
|
|
2
2
|
|
|
3
|
-
Abstract logomarks from rules and controls, no AI. Each recipe is one construction (
|
|
3
|
+
Abstract logomarks from rules and controls, no AI. Each recipe is one construction (60 of them: bars, bands, twin,
|
|
4
4
|
stack, shear, turns, burst, tiles, route, arcs, rings, stripes, chevrons, waves, cut, split, spiral, bloom, links,
|
|
5
5
|
horizon, steps, hex, iso and letter; fourteen after live house families: arcstep, halfsq, invert, leaves, lobes, loops,
|
|
6
6
|
trine, strips, bite, blades, wavecut, capsules, flare, seam; and seven that combine unlike shapes: merge, overlap,
|
|
7
|
-
counter, pair, corners, offset, quarters
|
|
7
|
+
counter, pair, corners, offset, quarters; ten after the owner's reference logos: mosaic, weave, notch, nodes, xband,
|
|
8
|
+
mirror, ribbon, field, zigzag, halfstripe; and five after the commonest tech-brand marks: cloud, layers, bubble, check,
|
|
9
|
+
peak) that lists its controls
|
|
8
10
|
and draws a mark from them, fitted to the Logomarks standard: a 512 canvas, the longest side 448, centred,
|
|
9
11
|
`currentColor`, the house gap. Every recipe also takes the finish controls (turn, mirror, round corners, outline, an
|
|
10
|
-
accent dot, a container: badge or
|
|
12
|
+
accent dot, a container: a circle, square, rounded square, hexagon or speech bubble, as a badge, a clip or a frame). Each mark comes with its `pieces`, and `svgOf()` draws them in two colours. A
|
|
11
13
|
quality guard skips draws with specks, slivers, thin necks, hairline holes, a bare primitive or too little ink. Runs in
|
|
12
14
|
the browser and in Node.
|
|
13
15
|
|
|
@@ -39,7 +41,7 @@ const badge = generate('letter', { char: 'K', build: 'slabs', container: 'circle
|
|
|
39
41
|
const twoTone = svgOf(mark.pieces, { colors: ['#0b0b0b', '#c8ff00'], pattern: 'rows' });
|
|
40
42
|
```
|
|
41
43
|
|
|
42
|
-
`PRESETS` lists
|
|
44
|
+
`PRESETS` lists 55 one-click starting points. `RECIPES[id].controls` describes every control (range, choice or toggle) so a UI can build its sliders from it.
|
|
43
45
|
|
|
44
46
|
## Playground
|
|
45
47
|
|
|
@@ -116,3 +118,31 @@ and off the axes); `chevrons` takes `body: 'hexagon'` and `soft` (round corners
|
|
|
116
118
|
be 1, a soft A); `route` takes `body: 'cube'` (an iso cube, its three faces engraved with short tracks ending in a
|
|
117
119
|
node); `letter` takes five more builds, `wedge`, `cut`, `rails`, `hexfold` and `quarter`; the finish takes
|
|
118
120
|
`containerMode: 'frame'` (the container as a heavy ring, the mark whole inside) and `accentShape: 'square'`.
|
|
121
|
+
|
|
122
|
+
## The tech-brand styles (0.5.0)
|
|
123
|
+
|
|
124
|
+
Five recipes after the archetypes the owner's audit of 623 tech-brand icons found thin or missing in the set
|
|
125
|
+
(`tools/logomarks/review/handoffs/tech-brands-audit.md` in the site repo). Every one makes a construction move; none
|
|
126
|
+
draws the plain icon, and none copies a brand: the default and 200 shuffles of each score under 0.72 against the brands'
|
|
127
|
+
own icons for that archetype by the house outline measure (cloud 0.717, layers 0.699, bubble 0.711, check 0.622,
|
|
128
|
+
peak 0.632).
|
|
129
|
+
|
|
130
|
+
- `cloud`: two to five round puffs on a flat or round base, with one move: lifted off a strip of its base by a gap
|
|
131
|
+
(`bands`), split by one slanted gap, a slot run in from one end, a heavy outline broken once, or stacked over a smaller
|
|
132
|
+
cloud. Never rain, a bolt or a sun (nothing under or behind it; no piece a whole disc). A plain cloud is by hand only.
|
|
133
|
+
- `layers`: two to four plates (rhombus, rounded, chevron or a slab with a thickness) stacked with the gap between,
|
|
134
|
+
apart, stepped aside or tapered. Never level bars (a menu icon). Plain flat plates stacked straight are the UI layers
|
|
135
|
+
icon and one company's mark, and slabs stacked straight or tapered outline two others': they taper or step aside.
|
|
136
|
+
- `bubble`: a speech bubble (a disc, a rounded or a soft block) with one move: the tail parted by the gap, a pair (the
|
|
137
|
+
back one cleared by the gap), bands, a bar run in from one side, or a quarter bitten from the far corner. Never two
|
|
138
|
+
holes (eyes) or three dots, never lines of text (a block takes one cut), never a disc pair (one brand's mark) or a
|
|
139
|
+
disc with a parted wedge (a magnifier).
|
|
140
|
+
- `check`: a heavy tick with one move: the legs parted at the heel, doubled or tripled, or cut out of a half disc (a
|
|
141
|
+
bowl) with the long leg running out over the rim. Never a hole (a checkbox, the verified disc); the slab cut-out (a
|
|
142
|
+
box with the tick running out of it) is by hand only; never turned or mirrored.
|
|
143
|
+
- `peak`: the letter A as a peak, two heavy legs and no crossbar, narrow, the apex pointed or flat, with one move: the
|
|
144
|
+
right leg parted, a slot up a leg, the feet cut off, a small triangle seated in the counter, or a second peak nested
|
|
145
|
+
under. Never wider than tall (a caret), nothing up the middle (an arrow), never rounded at the apex (one brand's A).
|
|
146
|
+
|
|
147
|
+
The finish's `container` takes `'bubble'`: the mark knocked out of, clipped to or framed by a speech bubble, set a
|
|
148
|
+
little above the middle to sit in the bubble's body.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logomarks/generate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Abstract logomarks from rules and controls, no AI: 34 recipes (bars, bands, twin, stack, shear, turns, burst, tiles, route, arcs, rings, stripes, dots, pixel, chevrons, waves, cut, split, venn, blobs, dashes, fan, fold, spiral, orbit, bloom, links, horizon, steps, hex, tri, iso, line, letter) that each list their controls and draw a mark from them and a seed, fitted to the Logomarks standard (512 canvas, 448 fit, the house gap), a shared finish (rounding, outline, an accent dot, a container), two-colour pieces, seeded variations and presets. Runs in the browser and in Node.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/finish.js
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* inner corners instead (a closing, kept under half the house gap so separate pieces never fuse), or each piece's own
|
|
6
6
|
* right end, top or outer corner (measured from the piece's own box). `accent` adds one accent dot, a house gap off the
|
|
7
7
|
* mark's right end or corner, or inside its biggest counter (never a round one: a ring with a dot is an eye).
|
|
8
|
-
* `container` puts the finished mark in a circle, square, rounded square or
|
|
8
|
+
* `container` puts the finished mark in a circle, square, rounded square, hexagon or speech bubble: clipped to it (`clip`: the mark
|
|
9
9
|
* zoomed by 1 / `containerSize` and cut at the shape's edge), knocked out of it (`badge`: the shape solid, the mark a
|
|
10
10
|
* house gap's worth of hole, sitting at `containerSize` of the shape) or framed by it (`frame`: the shape as a heavy
|
|
11
11
|
* ring, the mark whole inside). `accentShape` makes the accent a disc or a square (a square full stop).
|
|
12
12
|
*/
|
|
13
|
-
import { U, D, I, rect, rot, mapPts, grow, signedArea, perimeter, circle, rr, regular } from '@logomarks/core/geometry';
|
|
13
|
+
import { U, D, I, rect, rot, mapPts, grow, signedArea, perimeter, circle, rr, regular, poly } from '@logomarks/core/geometry';
|
|
14
14
|
import { BOX, GAP, tidy } from './draw.js';
|
|
15
15
|
|
|
16
16
|
/** @type {import('./index.js').Control[]} */
|
|
@@ -22,7 +22,7 @@ export const FINISH = [
|
|
|
22
22
|
{ key: 'outline', label: 'Outline', type: 'range', min: 0, max: 60, step: 1, value: 0, group: 'finish' },
|
|
23
23
|
{ key: 'accent', label: 'Accent dot', type: 'choice', options: ['none', 'end', 'corner', 'inside'], value: 'none', group: 'finish' },
|
|
24
24
|
{ key: 'accentSize', label: 'Dot size', type: 'range', min: 0.8, max: 1.4, step: 0.05, value: 1, group: 'finish' },
|
|
25
|
-
{ key: 'container', label: 'Container', type: 'choice', options: ['none', 'circle', 'square', 'rounded', 'hexagon'], value: 'none', group: 'finish' },
|
|
25
|
+
{ key: 'container', label: 'Container', type: 'choice', options: ['none', 'circle', 'square', 'rounded', 'hexagon', 'bubble'], value: 'none', group: 'finish' },
|
|
26
26
|
{ key: 'containerMode', label: 'Container mode', type: 'choice', options: ['badge', 'clip', 'frame'], value: 'badge', group: 'finish' },
|
|
27
27
|
{ key: 'containerSize', label: 'Mark size inside', type: 'range', min: 0.5, max: 0.9, step: 0.01, value: 0.78, group: 'finish' },
|
|
28
28
|
{ key: 'accentShape', label: 'Dot shape', type: 'choice', options: ['disc', 'square'], value: 'disc', group: 'finish' },
|
|
@@ -46,30 +46,38 @@ function containerShape(kind) {
|
|
|
46
46
|
if (kind === 'circle') return circle(cx, cy, size / 2, 160);
|
|
47
47
|
if (kind === 'rounded') return rr(x0, y0, size, size, size * 0.22);
|
|
48
48
|
if (kind === 'hexagon') return regular(cx, cy, size / 2, 6, -90);
|
|
49
|
+
if (kind === 'bubble') {
|
|
50
|
+
// a speech bubble: a rounded block with its lower-left corner sharp and run down into a tail
|
|
51
|
+
const h = size * 0.84, r = size * 0.22, t = size * 0.17;
|
|
52
|
+
return U(rr(x0, y0, size, h, [r, r, r, 0]), poly([[x0, y0 + h - t], [x0, y0 + size], [x0 + t * 1.5, y0 + h - 1]]));
|
|
53
|
+
}
|
|
49
54
|
return rect(x0, y0, size, size);
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
/** How much of a container's width a mark's box can take and still sit inside it with room round its corners. */
|
|
53
|
-
const INSCRIBE = { circle: 0.74, square: 1, rounded: 0.94, hexagon: 0.8 };
|
|
58
|
+
const INSCRIBE = { circle: 0.74, square: 1, rounded: 0.94, hexagon: 0.8, bubble: 0.8 };
|
|
59
|
+
/** Where a container's mark sits: its centre's drop from the box's (a bubble's body is above its tail). */
|
|
60
|
+
const LIFT = { bubble: -0.08 };
|
|
54
61
|
|
|
55
|
-
/** The mark scaled about the box's centre so its longest side is `side`, centred. */
|
|
56
|
-
function scaledTo(shape, side) {
|
|
62
|
+
/** The mark scaled about the box's centre so its longest side is `side`, centred (`dy` lower, in boxes). */
|
|
63
|
+
function scaledTo(shape, side, dy = 0) {
|
|
57
64
|
const polys = typeof shape[0][0][0] === 'number' ? [shape] : shape;
|
|
58
65
|
const [x0, y0, x1, y1] = boxOf(polys), k = side / Math.max(x1 - x0, y1 - y0, 1e-9);
|
|
59
66
|
const mx = (x0 + x1) / 2, my = (y0 + y1) / 2;
|
|
60
|
-
return mapPts(polys, ([x, y]) => [BOX.cx + (x - mx) * k, BOX.cy + (y - my) * k]);
|
|
67
|
+
return mapPts(polys, ([x, y]) => [BOX.cx + (x - mx) * k, BOX.cy + dy * BOX.size + (y - my) * k]);
|
|
61
68
|
}
|
|
62
69
|
|
|
63
70
|
/** The mark in a container: clipped to it, or knocked out of it as a badge. */
|
|
64
71
|
function contain(shape, kind, mode, size) {
|
|
65
72
|
if (!shape || !shape.length) return shape;
|
|
66
73
|
const box = containerShape(kind);
|
|
67
|
-
|
|
74
|
+
const dy = LIFT[kind] || 0;
|
|
75
|
+
if (mode === 'clip') return tidy(I(scaledTo(shape, (BOX.size * 0.9) / size, dy), box));
|
|
68
76
|
// frame: the container drawn as a heavy ring (its band about the house gap and a half), the mark whole inside it, a gap
|
|
69
77
|
// clear of the ring all round
|
|
70
78
|
if (mode === 'frame') {
|
|
71
79
|
const band = GAP * 1.7, ring = D(box, grow(box, -band));
|
|
72
|
-
const mark = scaledTo(shape, BOX.size * size * INSCRIBE[kind] * 0.86);
|
|
80
|
+
const mark = scaledTo(shape, BOX.size * size * INSCRIBE[kind] * 0.86, dy);
|
|
73
81
|
return tidy(U(ring, D(mark, grow(ring, GAP * 1.1))));
|
|
74
82
|
}
|
|
75
83
|
// badge: the mark sits at `size` of the shape, its pieces knocked out; a mark spilling past the shape's edge would cut
|
|
@@ -77,7 +85,7 @@ function contain(shape, kind, mode, size) {
|
|
|
77
85
|
// the holes, so each hole is shrunk by half of what the scale took off the gap (the bridges get it back). A mark too
|
|
78
86
|
// thin for this leaves hairline holes, which the guard turns away.
|
|
79
87
|
const k = (size * INSCRIBE[kind]);
|
|
80
|
-
const mark = I(scaledTo(shape, BOX.size * k), grow(box, -GAP));
|
|
88
|
+
const mark = I(scaledTo(shape, BOX.size * k, dy), grow(box, -GAP));
|
|
81
89
|
const back = (GAP * Math.max(0, 1 - k)) / 2;
|
|
82
90
|
return tidy(D(box, back > 0.5 ? grow(mark, -back) : mark));
|
|
83
91
|
}
|
package/src/generate.js
CHANGED
|
@@ -267,7 +267,7 @@ export function similar(id, params, { count = 12, seed = 1, amount = 0.15, locke
|
|
|
267
267
|
* How often each recipe comes up in `mix()`, relative to 1: the ones whose shuffles most often give a mark worth
|
|
268
268
|
* keeping lead; the textured ones (iso, hex, tiles) come up less.
|
|
269
269
|
*/
|
|
270
|
-
export const MIX_WEIGHT = { twin: 1.6, cut: 1.6, split: 1.4, chevrons: 1.3, spiral: 1.2, links: 1.2, arcs: 1.2, bands: 1.2, stripes: 1.2, rings: 0.8, turns: 1.1, bloom: 1, burst: 1, bars: 1, waves: 0.9, stack: 0.8, steps: 0.8, letter: 0.8, shear: 0.6, route: 0.5, horizon: 0.5, tiles: 0.6, hex: 0.5, iso: 0.5, arcstep: 1.4, leaves: 1.3, seam: 1.3, trine: 1.1, blades: 1.1, invert: 1, wavecut: 1, capsules: 1, bite: 0.9, loops: 0.8, strips: 0.7, flare: 0.8, lobes: 0.9, halfsq: 0.8, pixelarc: 0.4 , merge: 1.3, overlap: 1.3, counter: 1.2, pair: 1.3, corners: 1.2, offset: 1.1, quarters: 1.1 , mosaic: 0.8, weave: 0.8, notch: 1, nodes: 0.9, xband: 0.9, mirror: 0.8, ribbon: 1, field: 0.7, zigzag: 0.9, halfstripe: 0.9 };
|
|
270
|
+
export const MIX_WEIGHT = { twin: 1.6, cut: 1.6, split: 1.4, chevrons: 1.3, spiral: 1.2, links: 1.2, arcs: 1.2, bands: 1.2, stripes: 1.2, rings: 0.8, turns: 1.1, bloom: 1, burst: 1, bars: 1, waves: 0.9, stack: 0.8, steps: 0.8, letter: 0.8, shear: 0.6, route: 0.5, horizon: 0.5, tiles: 0.6, hex: 0.5, iso: 0.5, arcstep: 1.4, leaves: 1.3, seam: 1.3, trine: 1.1, blades: 1.1, invert: 1, wavecut: 1, capsules: 1, bite: 0.9, loops: 0.8, strips: 0.7, flare: 0.8, lobes: 0.9, halfsq: 0.8, pixelarc: 0.4 , merge: 1.3, overlap: 1.3, counter: 1.2, pair: 1.3, corners: 1.2, offset: 1.1, quarters: 1.1 , mosaic: 0.8, weave: 0.8, notch: 1, nodes: 0.9, xband: 0.9, mirror: 0.8, ribbon: 1, field: 0.7, zigzag: 0.9, halfstripe: 0.9, cloud: 0.9, layers: 0.9, bubble: 0.8, check: 0.7, peak: 0.8 };
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* `count` marks from ANY recipe: each slot picks a recipe by its seed (from `ids`, every recipe by default, weighted by
|
package/src/index.d.ts
CHANGED
|
@@ -44,10 +44,10 @@ export interface Generated {
|
|
|
44
44
|
seed?: number;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
/** Every recipe, by id (
|
|
47
|
+
/** Every recipe, by id (60): bars, bands, twin, stack, shear, turns, burst, tiles, route, arcs, rings, stripes, chevrons,
|
|
48
48
|
* waves, cut, split, spiral, bloom, links, horizon, steps, hex, iso, letter, arcstep, halfsq, invert, leaves, lobes, loops,
|
|
49
49
|
* trine, strips, bite, blades, wavecut, capsules, flare, merge, overlap, counter, pair, corners, offset, quarters, seam,
|
|
50
|
-
* mosaic, weave, notch, nodes, xband, mirror, ribbon, field, zigzag and
|
|
50
|
+
* mosaic, weave, notch, nodes, xband, mirror, ribbon, field, zigzag, halfstripe, cloud, layers, bubble, check and peak. */
|
|
51
51
|
export const RECIPES: Record<string, Recipe>;
|
|
52
52
|
/** A recipe by id; throws for an unknown one. */
|
|
53
53
|
export function recipe(id: string): Recipe;
|
package/src/presets.js
CHANGED
|
@@ -53,4 +53,13 @@ export const PRESETS = [
|
|
|
53
53
|
{ id: 'zigzag-disc', name: 'Zigzag disc', recipe: 'zigzag', params: { shape: 'circle', stripes: 5, teeth: 2 }, note: 'A striped disc broken by a zigzag, one side slid.' },
|
|
54
54
|
{ id: 'half-bars', name: 'Half bars', recipe: 'halfstripe', params: { shape: 'hexagon', bars: 4, step: 0.1 }, note: 'A hexagon half solid, half bars stepping down.' },
|
|
55
55
|
{ id: 'four-shapes', name: 'Four shapes', recipe: 'quarters', params: { a: 'quarter', b: 'wedge', c: 'disc', d: 'leaf', rule: 'rotate' }, note: 'Four unlike shapes, each a quarter turn on from the last.' },
|
|
56
|
+
// the tech-brand styles (0.5.0)
|
|
57
|
+
{ id: 'banded-cloud', name: 'Banded cloud', recipe: 'cloud', params: { puffs: 3, rise: 'left', move: 'bands' }, note: 'A cloud lifted off a strip of its base by one gap.' },
|
|
58
|
+
{ id: 'slotted-cloud', name: 'Slotted cloud', recipe: 'cloud', params: { puffs: 3, rise: 'right', move: 'slot', base: 'round' }, note: 'A cloud with a slot run in from one end.' },
|
|
59
|
+
{ id: 'slab-layers', name: 'Slab layers', recipe: 'layers', params: { plate: 'slab', count: 3, lay: 'stack' }, note: 'Three plates with a thickness, stacked a gap apart.' },
|
|
60
|
+
{ id: 'offset-layers', name: 'Offset layers', recipe: 'layers', params: { plate: 'rounded', count: 3, lay: 'offset' }, note: 'Three soft plates, each a step to one side.' },
|
|
61
|
+
{ id: 'bubble-pair', name: 'Bubble pair', recipe: 'bubble', params: { move: 'pair', body: 'rounded' }, note: 'Two speech bubbles, the back one cleared by the gap.' },
|
|
62
|
+
{ id: 'striped-bubble', name: 'Striped bubble', recipe: 'bubble', params: { move: 'bands', body: 'disc', bands: 3 }, note: 'A round speech bubble cut into three bands.' },
|
|
63
|
+
{ id: 'parted-tick', name: 'Parted tick', recipe: 'check', params: { move: 'heel', weight: 0.21 }, note: 'A heavy tick, its two legs parted at the heel.' },
|
|
64
|
+
{ id: 'seated-a', name: 'Seated A', recipe: 'peak', params: { move: 'seat', apex: 'flat', weight: 0.22 }, note: 'An A as a peak, a small triangle seated for its crossbar.' },
|
|
56
65
|
];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bubble: a speech bubble as a construction, after the chat marks of the owner's tech-brand audit (2026-11-27): a disc,
|
|
3
|
+
* rounded square or squircle-cornered block with a tail at one lower corner, and ONE move: the tail parted from the body
|
|
4
|
+
* by the gap, two bubbles overlapping with the back one cleared by the gap, the bubble cut into bands, a glyph cut in (a
|
|
5
|
+
* slot, a bar run in from the side, a quarter). Folded from one heavy band it read as a Q: left out. Never eyes or a face (no two
|
|
6
|
+
* holes in a bubble), never three dots (the typing indicator), never a heart, never lines of text (a message icon):
|
|
7
|
+
* a bubble takes at most one cut-out.
|
|
8
|
+
*/
|
|
9
|
+
import { U, D, I, rect, rr, circle, poly, grow, sector } from '@logomarks/core/geometry';
|
|
10
|
+
import { BOX, GAP, tidy } from '../draw.js';
|
|
11
|
+
|
|
12
|
+
/** @type {import('../index.js').Control[]} */
|
|
13
|
+
export const controls = [
|
|
14
|
+
{ key: 'body', label: 'Body', type: 'choice', options: ['disc', 'rounded', 'soft'], value: 'rounded' },
|
|
15
|
+
{ key: 'move', label: 'Move', type: 'choice', options: ['tail', 'pair', 'bands', 'glyph', 'none'], value: 'pair' },
|
|
16
|
+
{ key: 'glyph', label: 'Cut-out', type: 'choice', options: ['bar', 'quarter', 'slot'], value: 'bar' },
|
|
17
|
+
{ key: 'tail', label: 'Tail', type: 'choice', options: ['left', 'right'], value: 'left' },
|
|
18
|
+
{ key: 'tailSize', label: 'Tail size', type: 'range', min: 0.16, max: 0.3, step: 0.01, value: 0.22 },
|
|
19
|
+
{ key: 'bands', label: 'Bands', type: 'range', min: 2, max: 3, step: 1, value: 2 },
|
|
20
|
+
{ key: 'weight', label: 'Band weight', type: 'range', min: 0.13, max: 0.2, step: 0.005, value: 0.16 },
|
|
21
|
+
{ key: 'back', label: 'Back bubble', type: 'range', min: 0.55, max: 0.8, step: 0.01, value: 0.66 },
|
|
22
|
+
{ key: 'spacing', label: 'Gap', type: 'range', min: 1, max: 1.7, step: 0.05, value: 1.2 },
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A bubble's body `s` square at (x, y) and its tail: a corner of the body pulled down past the foot at the `side`. The
|
|
27
|
+
* disc's tail is a wedge under it; the rounded and soft blocks keep that corner sharp and run it down.
|
|
28
|
+
*/
|
|
29
|
+
function bubble(x, y, s, p, side = p.tail) {
|
|
30
|
+
const t = s * p.tailSize, left = side === 'left';
|
|
31
|
+
const r = p.body === 'disc' ? s / 2 : p.body === 'soft' ? s * 0.36 : s * 0.2;
|
|
32
|
+
const body = p.body === 'disc' ? circle(x + s / 2, y + s / 2, s / 2, 160) : rr(x, y, s, s, left ? [r, r, r, 0] : [r, r, 0, r]);
|
|
33
|
+
const cx = left ? x : x + s, foot = y + s;
|
|
34
|
+
// the tail: from the corner (or, on a disc, from under its side) down and out
|
|
35
|
+
const tail = p.body === 'disc'
|
|
36
|
+
? poly(left ? [[x + s * 0.12, y + s * 0.62], [x - t * 0.2, foot + t * 0.55], [x + s * 0.5, y + s * 0.94]] : [[x + s * 0.88, y + s * 0.62], [x + s + t * 0.2, foot + t * 0.55], [x + s * 0.5, y + s * 0.94]])
|
|
37
|
+
: poly(left ? [[cx, foot - t], [cx, foot + t * 0.95], [cx + t * 1.5, foot]] : [[cx, foot - t], [cx, foot + t * 0.95], [cx - t * 1.5, foot]]);
|
|
38
|
+
return { body, tail, all: U(body, tail) };
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** The mark for resolved params. */
|
|
42
|
+
export function build(p) {
|
|
43
|
+
const g = GAP * p.spacing, S = BOX.size * 0.84, x = BOX.cx - S / 2, y = BOX.cy - S / 2 - S * p.tailSize * 0.35;
|
|
44
|
+
const b = bubble(x, y, S, p);
|
|
45
|
+
// two round bubbles side by side are one tech brand's mark: a disc pair is drawn as rounded blocks
|
|
46
|
+
if (p.move === 'pair' && p.body === 'disc') return build({ ...p, body: 'soft' });
|
|
47
|
+
if (p.move === 'pair') {
|
|
48
|
+
// a smaller bubble behind, up and to the far side, its tail the other way; the front one whole, the back one
|
|
49
|
+
// cleared of it by the gap
|
|
50
|
+
const s2 = S * p.back, left = p.tail === 'left';
|
|
51
|
+
const fx = left ? BOX.x0 : BOX.x1 - S * 0.86, front = bubble(fx, BOX.y1 - S * 0.86 * (1 + p.tailSize * 0.6), S * 0.86, p);
|
|
52
|
+
const bx = left ? BOX.x1 - s2 : BOX.x0, back = bubble(bx, BOX.y0, s2, p, left ? 'right' : 'left');
|
|
53
|
+
return tidy(U(front.all, D(back.all, grow(front.all, g))));
|
|
54
|
+
}
|
|
55
|
+
if (p.move === 'tail') {
|
|
56
|
+
// the tail parted from the body: a right triangle a gap under the block's sharp corner (a disc with a parted
|
|
57
|
+
// wedge is a magnifier: the disc takes its tail whole and is cut into three bands instead)
|
|
58
|
+
if (p.body === 'disc') return build({ ...p, move: 'bands', bands: 3 });
|
|
59
|
+
const t = S * p.tailSize * 1.5, left = p.tail === 'left', cx = left ? x : x + S, ty = y + S + g;
|
|
60
|
+
const tail = poly(left ? [[cx, ty], [cx, ty + t], [cx + t * 1.25, ty]] : [[cx, ty], [cx, ty + t], [cx - t * 1.25, ty]]);
|
|
61
|
+
return tidy(U(b.body, tail));
|
|
62
|
+
}
|
|
63
|
+
// a disc with a bar run into it reads as an e: a disc's cut-out is its bands
|
|
64
|
+
if (p.move === 'bands' || (p.move === 'glyph' && p.body === 'disc')) {
|
|
65
|
+
// level gaps across the bubble, the tail riding with the lowest band
|
|
66
|
+
// a block cut into three is the lines of a message: a block takes one cut, a disc up to two
|
|
67
|
+
// (a disc cut once stays too solid a disc: a disc takes two cuts)
|
|
68
|
+
const n = p.body === 'disc' ? Math.max(3, p.bands) : 2, h = S / n, cuts = [];
|
|
69
|
+
for (let k = 1; k < n; k++) cuts.push(rect(x - S, y + k * h - g / 2, S * 3, g));
|
|
70
|
+
return tidy(D(b.all, U(...cuts)));
|
|
71
|
+
}
|
|
72
|
+
if (p.move === 'glyph') {
|
|
73
|
+
// one cut-out: a round-ended slot across the middle, a bar run in from the tail's far side, or a quarter disc
|
|
74
|
+
const cx = x + S / 2, cy = y + S / 2, w = S * p.weight;
|
|
75
|
+
if (p.glyph === 'bar') {
|
|
76
|
+
const fromRight = p.tail === 'left';
|
|
77
|
+
return tidy(D(b.all, rr(fromRight ? cx - S * 0.12 : x - S, cy - w / 2, S * 0.62 + S, w, w / 2)));
|
|
78
|
+
}
|
|
79
|
+
if (p.glyph === 'quarter') {
|
|
80
|
+
// a quarter bitten from the top corner away from the tail (a quarter hole in the middle read as a D or a P)
|
|
81
|
+
const q = S * 0.54, left = p.tail === 'left', qx = left ? x + S : x;
|
|
82
|
+
return tidy(D(b.all, circle(qx, y, q, 120)));
|
|
83
|
+
}
|
|
84
|
+
return tidy(D(b.all, rr(cx - S * 0.28, cy - w / 2, S * 0.56, w, w / 2)));
|
|
85
|
+
}
|
|
86
|
+
return tidy(b.all);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** One or two bubbles and their cut. */
|
|
90
|
+
export const guard = {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check: a tick as a construction, for tasks, compliance and done (the owner's tech-brand audit, 2026-11-27). A short leg
|
|
3
|
+
* and a long leg, heavy, with ONE move: the legs parted at the heel by the gap, the tick doubled or tripled in parallel
|
|
4
|
+
* bands, or the tick cut out of a slanted slab or a disc segment. Never a checkbox (nothing round it, no hole: a tick in a square), never a tick in a circle (the verified
|
|
5
|
+
* badge), never a thin stroke (the plain icon): every tick is heavy and carries its move. It never turns or mirrors (a
|
|
6
|
+
* tick backwards or on its side is no tick).
|
|
7
|
+
*/
|
|
8
|
+
import { U, D, I, poly, rect, rr, circle, grow, mitreBand } from '@logomarks/core/geometry';
|
|
9
|
+
import { BOX, GAP, tidy } from '../draw.js';
|
|
10
|
+
|
|
11
|
+
/** @type {import('../index.js').Control[]} */
|
|
12
|
+
export const controls = [
|
|
13
|
+
{ key: 'move', label: 'Move', type: 'choice', options: ['heel', 'double', 'triple', 'slab', 'half'], value: 'heel' },
|
|
14
|
+
{ key: 'weight', label: 'Weight', type: 'range', min: 0.15, max: 0.26, step: 0.005, value: 0.2 },
|
|
15
|
+
{ key: 'angle', label: 'Long leg angle', type: 'range', min: 40, max: 62, step: 1, value: 50 },
|
|
16
|
+
{ key: 'short', label: 'Short leg', type: 'range', min: 0.34, max: 0.56, step: 0.01, value: 0.44 },
|
|
17
|
+
{ key: 'ends', label: 'Ends', type: 'choice', options: ['square', 'level', 'round'], value: 'level' },
|
|
18
|
+
{ key: 'spacing', label: 'Gap', type: 'range', min: 1, max: 1.7, step: 0.05, value: 1.2 },
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
/** A tick's centreline: the short leg down to the heel, the long leg up, the heel at (hx, hy); `L` the long leg's length. */
|
|
22
|
+
function tickPts(hx, hy, L, p) {
|
|
23
|
+
const a = (p.angle * Math.PI) / 180, b = ((90 - p.angle + 10) * Math.PI) / 180, s = L * p.short;
|
|
24
|
+
return [[hx - s * Math.cos(b), hy - s * Math.sin(b)], [hx, hy], [hx + L * Math.cos(a), hy - L * Math.sin(a)]];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** A heavy tick of weight `w` on a centreline, its ends cut square to each leg, level, or round. */
|
|
28
|
+
function tick(pts, w, ends) {
|
|
29
|
+
if (ends === 'round') return U(mitreBand(pts, w), circle(...pts[0], w / 2, 64), circle(...pts[2], w / 2, 64));
|
|
30
|
+
if (ends !== 'level') return mitreBand(pts, w);
|
|
31
|
+
// level ends: each leg run on past its end, then cut by a level line through that end
|
|
32
|
+
const ext = (a, b, k) => [a[0] + (a[0] - b[0]) * k, a[1] + (a[1] - b[1]) * k], far = BOX.size * 3;
|
|
33
|
+
const s = mitreBand([ext(pts[0], pts[1], 0.4), pts[1], ext(pts[2], pts[1], 0.3)], w);
|
|
34
|
+
const right = rect(pts[1][0], pts[2][1], far, far), left = rect(pts[1][0] - far, pts[0][1], far, far);
|
|
35
|
+
return I(s, U(right, left));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** The mark for resolved params. */
|
|
39
|
+
export function build(p) {
|
|
40
|
+
const g = GAP * p.spacing, w = BOX.size * p.weight, L = BOX.size * 0.78;
|
|
41
|
+
const hx = BOX.cx - L * 0.16, hy = BOX.cy + L * 0.3, pts = tickPts(hx, hy, L, p);
|
|
42
|
+
if (p.move === 'double' || p.move === 'triple') {
|
|
43
|
+
// the tick and one or two copies above it, each a gap clear of the one below
|
|
44
|
+
const n = p.move === 'double' ? 2 : 3, step = w + g, out = [];
|
|
45
|
+
for (let k = 0; k < n; k++) out.push(tick(pts.map(([x, y]) => [x + k * step * 0.18, y - k * step]), w, p.ends));
|
|
46
|
+
let s = out[0];
|
|
47
|
+
for (let k = 1; k < n; k++) s = U(s, D(out[k], grow(s, g)));
|
|
48
|
+
return tidy(s);
|
|
49
|
+
}
|
|
50
|
+
if (p.move === 'heel') {
|
|
51
|
+
// the two legs as two bars: the long one run back a little past the heel, the short one stopping a gap short of it
|
|
52
|
+
const [a, h, c] = pts, dl = [c[0] - h[0], c[1] - h[1]], ll = Math.hypot(...dl);
|
|
53
|
+
const back = [h[0] - (dl[0] / ll) * w * 0.5, h[1] - (dl[1] / ll) * w * 0.5];
|
|
54
|
+
let longBand = mitreBand([back, c], w), shortBand = mitreBand([a, h], w);
|
|
55
|
+
if (p.ends === 'round') { longBand = U(longBand, circle(...c, w / 2, 64)); shortBand = U(shortBand, circle(...a, w / 2, 64)); }
|
|
56
|
+
return tidy(U(longBand, D(shortBand, grow(longBand, g))));
|
|
57
|
+
}
|
|
58
|
+
if (p.move === 'half') {
|
|
59
|
+
// a half disc, a bowl, with a smaller tick cut out of it, the long leg running out over its rim
|
|
60
|
+
const R = BOX.size * 0.5, top = BOX.cy - R * 0.36, L2 = R * 1.25, w2 = w * 0.78;
|
|
61
|
+
const p2 = tickPts(BOX.cx - R * 0.14, top + R * 0.62, L2, p), t2 = tick(p2, w2, p.ends);
|
|
62
|
+
const bowl = I(circle(BOX.cx, top, R, 180), rect(BOX.x0 - 4, top, BOX.size + 8, BOX.size));
|
|
63
|
+
return tidy(D(bowl, grow(t2, g * 0.5)));
|
|
64
|
+
}
|
|
65
|
+
const t = tick(pts, w, p.ends);
|
|
66
|
+
// a slab or a half disc (a bowl) under the tick, its top level a little above the short leg's tip: the tick cut out of
|
|
67
|
+
// it, open where the long leg runs out of the top (the leg drawn on above it left shards at the edge). The slab, a
|
|
68
|
+
// box with the tick running out of it, is the checked-box UI icon: by hand only
|
|
69
|
+
const top = pts[0][1] - w * 1.5, bottom = pts[1][1] + w * 1.2;
|
|
70
|
+
const body = p.move === 'half'
|
|
71
|
+
? I(circle(BOX.cx, top, BOX.size * 0.46, 180), rect(BOX.x0 - 4, top, BOX.size + 8, BOX.size))
|
|
72
|
+
: poly([[BOX.x0 + BOX.size * 0.18, top], [BOX.x1, top], [BOX.x1 - BOX.size * 0.18, bottom], [BOX.x0, bottom]]);
|
|
73
|
+
return tidy(D(body, grow(t, g * 0.5)));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** A heavy tick and its move. */
|
|
77
|
+
export const guard = {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cloud: a bold cloud, two to five round puffs on a flat or round base, unioned, with ONE move: cut into level bands,
|
|
3
|
+
* split by one slanted gap, a slot run in from one side, drawn as a heavy outline broken once, or stacked over a smaller
|
|
4
|
+
* cloud a gap above. The commonest infrastructure mark in the owner's tech-brand audit (2026-11-27), which the set
|
|
5
|
+
* lacked. Never rain, a bolt or a sun (weather icons): nothing is drawn under or behind the cloud, and no piece is a
|
|
6
|
+
* whole disc. A plain solid cloud is the cloud icon itself: by hand only.
|
|
7
|
+
*/
|
|
8
|
+
import { U, D, I, rect, rr, circle, poly, grow } from '@logomarks/core/geometry';
|
|
9
|
+
import { BOX, GAP, tidy } from '../draw.js';
|
|
10
|
+
|
|
11
|
+
/** @type {import('../index.js').Control[]} */
|
|
12
|
+
export const controls = [
|
|
13
|
+
{ key: 'puffs', label: 'Puffs', type: 'range', min: 2, max: 5, step: 1, value: 3 },
|
|
14
|
+
{ key: 'base', label: 'Base', type: 'choice', options: ['flat', 'round'], value: 'flat' },
|
|
15
|
+
{ key: 'rise', label: 'Tallest puff', type: 'choice', options: ['middle', 'left', 'right'], value: 'left' },
|
|
16
|
+
{ key: 'move', label: 'Move', type: 'choice', options: ['bands', 'split', 'slot', 'outline', 'stack', 'none'], value: 'bands' },
|
|
17
|
+
{ key: 'height', label: 'Height', type: 'range', min: 0.5, max: 0.78, step: 0.01, value: 0.62 },
|
|
18
|
+
{ key: 'bands', label: 'Bands', type: 'range', min: 2, max: 4, step: 1, value: 2 },
|
|
19
|
+
{ key: 'at', label: 'Cut at', type: 'range', min: 0.3, max: 0.7, step: 0.01, value: 0.5 },
|
|
20
|
+
{ key: 'angle', label: 'Cut angle', type: 'range', min: -40, max: 40, step: 1, value: -24 },
|
|
21
|
+
{ key: 'weight', label: 'Outline weight', type: 'range', min: 0.12, max: 0.2, step: 0.005, value: 0.15 },
|
|
22
|
+
{ key: 'spacing', label: 'Gap', type: 'range', min: 1, max: 1.8, step: 0.05, value: 1.2 },
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
/** Each puff's radius and centre, as shares of the cloud's width, for a count and which puff stands tallest. */
|
|
26
|
+
function puffsOf(n, rise) {
|
|
27
|
+
const P = {
|
|
28
|
+
2: [[0.2, 0.3], [0.27, 0.64]],
|
|
29
|
+
3: [[0.17, 0.25], [0.26, 0.54], [0.155, 0.8]],
|
|
30
|
+
4: [[0.14, 0.2], [0.21, 0.42], [0.2, 0.64], [0.13, 0.84]],
|
|
31
|
+
5: [[0.12, 0.15], [0.16, 0.32], [0.2, 0.5], [0.16, 0.68], [0.11, 0.85]],
|
|
32
|
+
}[n];
|
|
33
|
+
if (rise === 'right') return P;
|
|
34
|
+
if (rise === 'left') return P.map(([r, x]) => [r, 1 - x]).reverse();
|
|
35
|
+
// the tallest in the middle: the radii sorted onto the slots from the middle out
|
|
36
|
+
const rs = P.map(([r]) => r).sort((a, b) => b - a), mid = (n - 1) / 2;
|
|
37
|
+
const slots = P.map(([, x], k) => ({ x, d: Math.abs(k - mid) + k * 0.01 })).sort((a, b) => a.d - b.d);
|
|
38
|
+
return slots.map((sl, i) => [rs[i], sl.x]).sort((a, b) => a[1] - b[1]);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** The cloud's height for a width: its tallest puff over its base. */
|
|
42
|
+
const cloudH = (w, p) => w * 0.26 * 0.95 + w * Math.max(...puffsOf(p.puffs, p.rise).map(([r]) => r)) * p.height / 0.62;
|
|
43
|
+
|
|
44
|
+
/** A cloud `w` wide with its bottom-left at (x0, y1): a round-ended base and its puffs standing on it. */
|
|
45
|
+
function cloud(x0, y1, w, p) {
|
|
46
|
+
const hb = w * 0.26, yc = y1 - hb * 0.95, k = p.height / 0.62;
|
|
47
|
+
const base = p.base === 'round' ? rr(x0, y1 - hb, w, hb, hb / 2) : rr(x0, y1 - hb, w, hb, [hb / 2, hb / 2, hb * 0.14, hb * 0.14]);
|
|
48
|
+
const puffs = puffsOf(p.puffs, p.rise).map(([r0, fx]) => {
|
|
49
|
+
const r = w * r0 * k, cx = Math.min(Math.max(x0 + w * fx, x0 + r), x0 + w - r);
|
|
50
|
+
return circle(cx, yc, r, 120);
|
|
51
|
+
});
|
|
52
|
+
// nothing hangs below the base
|
|
53
|
+
return I(U(base, ...puffs), rect(x0 - 4, BOX.y0 - BOX.size, w + 8, y1 - BOX.y0 + BOX.size));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** The mark for resolved params. */
|
|
57
|
+
export function build(p) {
|
|
58
|
+
const W = BOX.size, g = GAP * p.spacing;
|
|
59
|
+
if (p.move === 'stack') {
|
|
60
|
+
// a smaller cloud a gap above a full one, its tallest puff on the other side
|
|
61
|
+
const w2 = W * 0.66, q = { ...p, rise: p.rise === 'left' ? 'right' : 'left', puffs: Math.max(2, p.puffs - 1) };
|
|
62
|
+
const h1 = cloudH(W, p), h2 = cloudH(w2, q), y1 = BOX.cy + (h1 + h2 + g) / 2;
|
|
63
|
+
const low = cloud(BOX.cx - W / 2, y1, W, p);
|
|
64
|
+
const high = cloud(BOX.cx - w2 / 2 + (p.rise === 'left' ? W * 0.1 : -W * 0.1), y1 - h1 - g * 0.4, w2, q);
|
|
65
|
+
return tidy(U(low, D(high, grow(low, g))));
|
|
66
|
+
}
|
|
67
|
+
const H = cloudH(W, p), x0 = BOX.cx - W / 2, y1 = BOX.cy + H / 2, c = cloud(x0, y1, W, p);
|
|
68
|
+
if (p.move === 'bands') {
|
|
69
|
+
// level gaps through the cloud, the bands of like height
|
|
70
|
+
// the cloud lifted off a strip of its own base by one gap, low in the base (cut at the base's top, a dome over a
|
|
71
|
+
// slab, it read as a burger); more bands cut the puffs level above it
|
|
72
|
+
const n = p.bands, hb = W * 0.26, foot = Math.max(GAP * 1.2, hb * 0.42), cuts = [rect(x0 - 8, y1 - foot - g, W + 16, g)];
|
|
73
|
+
const top = y1 - H, upper = H - foot - g, bandH = (upper - (n - 2) * g) / (n - 1);
|
|
74
|
+
for (let k = 1; k < n - 1; k++) cuts.push(rect(x0 - 8, top + k * bandH + (k - 1) * g, W + 16, g));
|
|
75
|
+
return tidy(D(c, U(...cuts)));
|
|
76
|
+
}
|
|
77
|
+
if (p.move === 'split') {
|
|
78
|
+
// one straight gap across the cloud at an angle, through its middle
|
|
79
|
+
const cy = y1 - H * p.at, t = Math.tan((p.angle * Math.PI) / 180), L = W * 0.8;
|
|
80
|
+
const cut = poly([[BOX.cx - L, cy - t * L - g / 2], [BOX.cx + L, cy + t * L - g / 2], [BOX.cx + L, cy + t * L + g / 2], [BOX.cx - L, cy - t * L + g / 2]]);
|
|
81
|
+
return tidy(D(c, cut));
|
|
82
|
+
}
|
|
83
|
+
if (p.move === 'slot') {
|
|
84
|
+
// a round-ended slot run in from the left end through the base, more than half the way across
|
|
85
|
+
const sh = g * 1.3, sy = y1 - W * 0.26 * 0.5 - sh / 2;
|
|
86
|
+
return tidy(D(c, rr(x0 - W, sy, W + W * (0.38 + p.at * 0.36), sh, sh / 2)));
|
|
87
|
+
}
|
|
88
|
+
if (p.move === 'outline') {
|
|
89
|
+
// a heavy outline, broken once on the base's right half
|
|
90
|
+
const t = W * p.weight, ring = D(c, grow(c, -t));
|
|
91
|
+
const bx = x0 + W * (0.5 + p.at * 0.3);
|
|
92
|
+
return tidy(D(ring, rect(bx, y1 - t - 4, g, t + 8)));
|
|
93
|
+
}
|
|
94
|
+
return tidy(c);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** One cloud and its cuts. */
|
|
98
|
+
export const guard = {};
|
package/src/recipes/index.js
CHANGED
|
@@ -56,6 +56,11 @@ import * as ribbon from './ribbon.js';
|
|
|
56
56
|
import * as field from './field.js';
|
|
57
57
|
import * as zigzag from './zigzag.js';
|
|
58
58
|
import * as halfstripe from './halfstripe.js';
|
|
59
|
+
import * as cloud from './cloud.js';
|
|
60
|
+
import * as layers from './layers.js';
|
|
61
|
+
import * as bubble from './bubble.js';
|
|
62
|
+
import * as check from './check.js';
|
|
63
|
+
import * as peak from './peak.js';
|
|
59
64
|
import { FINISH, finish } from '../finish.js';
|
|
60
65
|
import { TUNING } from '../tuning.js';
|
|
61
66
|
|
|
@@ -121,5 +126,10 @@ export const RECIPES = {
|
|
|
121
126
|
ribbon: R('ribbon', 'Ribbon', 'One thick band folding back with round turns and a slot.', ribbon),
|
|
122
127
|
field: R('field', 'Bar Field', 'A field of upright bars broken by one stepped line.', field),
|
|
123
128
|
zigzag: R('zigzag', 'Zigzag', 'A striped shape broken by a zigzag, one side slid.', zigzag),
|
|
129
|
+
cloud: R('cloud', 'Cloud', 'Puffs on a base with one move: bands, a split, a slot, an outline or a stack.', cloud),
|
|
130
|
+
layers: R('layers', 'Layers', 'Two to four plates stacked with the gap between, flat or with a thickness.', layers),
|
|
131
|
+
bubble: R('bubble', 'Bubble', 'A speech bubble with one move: a parted tail, a pair, bands, a cut-out or a fold.', bubble),
|
|
132
|
+
check: R('check', 'Check', 'A heavy tick with one move: a parted heel, doubled, cut from a shape, or folded.', check),
|
|
133
|
+
peak: R('peak', 'Peak', 'The letter A as a peak: two heavy legs, no crossbar, with one move.', peak),
|
|
124
134
|
halfstripe: R('halfstripe', 'Half Stripe', 'A shape half solid, half bars stepping down.', halfstripe),
|
|
125
135
|
};
|
|
@@ -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 = {};
|
|
@@ -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 = {};
|
package/src/tuning.js
CHANGED
|
@@ -74,6 +74,18 @@ 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) },
|
|
77
89
|
halfstripe: { bars: R(3, 5), solid: R(0.44, 0.58), step: R(0.05, 0.14), weight: R(0.5, 0.7) },
|
|
78
90
|
};
|
|
79
91
|
|
|
@@ -96,6 +108,7 @@ export const MAIN = {
|
|
|
96
108
|
mosaic: ['char', 'tiles', 'parted'], weave: ['strands', 'swells', 'height', 'ring'], notch: ['body', 'depth', 'seat', 'split'], nodes: ['nodes', 'size', 'hole', 'neck'],
|
|
97
109
|
xband: ['angle', 'weight', 'bend', 'double'], mirror: ['symmetry', 'bands', 'centre', 'body'], ribbon: ['path', 'turns', 'ends', 'slots'], field: ['bars', 'profile', 'slide', 'widths'],
|
|
98
110
|
zigzag: ['shape', 'stripes', 'teeth', 'slide'], halfstripe: ['shape', 'bars', 'step'],
|
|
111
|
+
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
112
|
};
|
|
100
113
|
|
|
101
114
|
/**
|
|
@@ -107,7 +120,8 @@ export const MAIN = {
|
|
|
107
120
|
* - turned they point, an arrow, a play button or a skip icon: chevrons, notch;
|
|
108
121
|
* - iso keeps its light from one side: iso;
|
|
109
122
|
* - 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
|
|
123
|
+
* - already the same every quarter turn, a turn adds nothing: rings, burst, bloom, loops, nodes, turns;
|
|
124
|
+
* - a tick backwards or on its side is no tick: check.
|
|
111
125
|
* Stack, Bars, Shear, Leaf Tiles and Trine take the mirror only (a stack turned is a figure the other way up; shear on
|
|
112
126
|
* 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
127
|
* 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 +143,16 @@ export const TURNS = {
|
|
|
129
143
|
stack: MIRROR, bars: MIRROR, leaves: MIRROR, trine: MIRROR, shear: MIRROR,
|
|
130
144
|
letter: NONE, mosaic: NONE, horizon: NONE, chevrons: NONE, notch: NONE, iso: NONE, arcs: NONE,
|
|
131
145
|
rings: NONE, burst: NONE, bloom: NONE, loops: NONE, nodes: NONE, turns: NONE,
|
|
146
|
+
// the tech-brand styles (2026-11-28): a cloud and a bubble keep level (a mirror moves the tail or the tallest puff);
|
|
147
|
+
// an A stays upright, its mirror the thin leg on the other side; a tick never turns or mirrors (a backwards tick is no
|
|
148
|
+
// tick); layers on their side read as a back or rewind arrow (judged from a sheet of turned shuffles): mirror only
|
|
149
|
+
cloud: MIRROR, bubble: MIRROR, peak: MIRROR, check: NONE, layers: MIRROR,
|
|
132
150
|
};
|
|
133
151
|
/**
|
|
134
152
|
* Keys a shuffle draws once and holds across its tries (`shuffled()` keeps the best of a few draws by quality; where a
|
|
135
153
|
* recipe's forms score unalike, the best-of would always pick one form). Mirror's symmetry: the two-way emblem outscores
|
|
136
154
|
* the four-way one, so without this two-way won nearly every shuffle.
|
|
137
155
|
*/
|
|
138
|
-
export const HOLD = { mirror: ['symmetry'], ribbon: ['path'] };
|
|
156
|
+
export const HOLD = { mirror: ['symmetry'], ribbon: ['path'], cloud: ['move'], bubble: ['move', 'body'], check: ['move'], peak: ['move'] };
|
|
139
157
|
/** How often a shuffle turns or mirrors a mark (of the turns its recipe allows). */
|
|
140
158
|
export const TURN_SHARE = 1 / 3;
|