@logomarks/lookbook 0.3.0 → 0.4.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 CHANGED
@@ -5,6 +5,22 @@ All notable changes to `@logomarks/lookbook` are documented here.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.0] — 2026-11-26
9
+
10
+ ### Added
11
+
12
+ - **Four more field cards**, after reference images the owner collected, each a live background from
13
+ @arraypress/effects-astro 0.12 behind the lockup, six colourways each, off unless a wall gives it a weight:
14
+ `dithergrad` ("Dithered gradient": a soft gradient drawn only in dots, a wavy horizon, a band of light, a swirl, a
15
+ pinwheel or falling steps, in ordered-dither squares or halftone dots), `truchet` ("Truchet tiles": quarter-arc tiles
16
+ joining into loops, a few turning at a time, flat or shaded like tubes), `pixelhorizon` ("Pixel horizon": a colour
17
+ filling one side and breaking into winking square blocks, its frontier kept under the name) and `flutedglow` ("Reeded
18
+ glow": a ring, orb or rising light through upright reeded glass, the lockup sharp in front). Each has a CSS still.
19
+
20
+ ### Dependencies
21
+
22
+ - `@arraypress/effects-astro` ^0.12.0.
23
+
8
24
  ## [0.3.0] — 2026-11-20
9
25
 
10
26
  ### Added
package/README.md CHANGED
@@ -37,7 +37,7 @@ holoPointer();
37
37
 
38
38
  ## What's in it
39
39
 
40
- - `@logomarks/lookbook`: `lookbook({ brand, faces, accent?, palettes?, weights?, href?, skip? })` gives `card`, `feed` and `backgrounds` (`weights: { asciinoise: 1 }` deals a field card, which is otherwise off: `FIELDS` lists them, live effects-astro backgrounds such as ASCII noise, light leak, dither, cascade grid, flow field, Voronoi mesh and kinetic grid); `shuffled`; the promo cards `headlineCard`, `sponsorCard`, `openSlotCard`; `WEIGHTS`, `KIND_LABEL`, `EVERY`, `ACCENT` (`#C8FF00`) and the look tables.
40
+ - `@logomarks/lookbook`: `lookbook({ brand, faces, accent?, palettes?, weights?, href?, skip? })` gives `card`, `feed` and `backgrounds` (`weights: { asciinoise: 1 }` deals a field card, which is otherwise off: `FIELDS` lists them, live effects-astro backgrounds such as ASCII noise, light leak, dither, cascade grid, flow field, Voronoi mesh, kinetic grid, dithered gradient, Truchet tiles, pixel horizon and reeded glow); `shuffled`; the promo cards `headlineCard`, `sponsorCard`, `openSlotCard`; `WEIGHTS`, `KIND_LABEL`, `EVERY`, `ACCENT` (`#C8FF00`) and the look tables.
41
41
  - `@logomarks/lookbook/looks`: the drawn looks, `LOOK_KINDS`, `LOOK_LABEL`, `LOOK_LOOP` (each moving look's loop, for a video), `LOOK_RATIO`, `LOOK_WEIGHTS`, `retarget` (another mark on a card) and `refit`.
42
42
  - `@logomarks/lookbook/marks`: a mark's box, ink share, optical size (`opticalVars`), cells and heat field; the box, ink, size and cells are `@logomarks/core`'s, re-exported.
43
43
  - `@logomarks/lookbook/live`: `liveCards`, `shaders` (Paper's shaders and the field cards' effects, each loaded when first needed), `smoke` with its presets `SMOKE`, and `holoPointer`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logomarks/lookbook",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "A logomark dressed as a made-up brand, in sixty-odd looks: on a photo, glass, a colour, paper or a live gradient, or the mark itself redrawn (traced, constructed, reeded, pixelated, neon, split-flap, contoured, thermal, liquid chrome, holo foil, ASCII, embroidered, frosted, editorial and more). Pure functions returning HTML, the same on the server and in the browser, with their CSS (motion in CSS only, a still final frame, a Plain mode), an optical size for wide, slim or light marks, and a browser runner that starts only what's near the screen.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -75,7 +75,7 @@
75
75
  "registry": "https://registry.npmjs.org/"
76
76
  },
77
77
  "dependencies": {
78
- "@arraypress/effects-astro": "^0.11.0",
78
+ "@arraypress/effects-astro": "^0.12.0",
79
79
  "@arraypress/og-image": "^1.5.1",
80
80
  "@arraypress/text": "^2.2.0",
81
81
  "@logomarks/core": "^0.2.1"
package/src/fields.d.ts CHANGED
@@ -7,7 +7,18 @@
7
7
  import type { Face } from './wall.js';
8
8
 
9
9
  /** The field cards' kinds. */
10
- export type FieldKind = 'asciinoise' | 'lightleak' | 'cascade' | 'flowfield' | 'voronoi' | 'dither' | 'kinetic';
10
+ export type FieldKind =
11
+ | 'asciinoise'
12
+ | 'lightleak'
13
+ | 'cascade'
14
+ | 'flowfield'
15
+ | 'voronoi'
16
+ | 'dither'
17
+ | 'kinetic'
18
+ | 'dithergrad'
19
+ | 'truchet'
20
+ | 'pixelhorizon'
21
+ | 'flutedglow';
11
22
 
12
23
  /** What a field card is dealt from: the card's seeded pick and random, the accent, and the wall's monospaced face. */
13
24
  export type FieldDeal = {
package/src/fields.js CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * The field cards: a live background drawn by one of @arraypress/effects-astro's fields (ASCII noise, …), started on
5
5
  * screen like a shader card (`./live.js`), the lockup over a quiet middle. Most came from Processing sketches a friend of
6
- * the owner shared (2026-11-20), modernised in effects-astro.
6
+ * the owner shared (2026-11-20), modernised in effects-astro; four from reference images the owner collected (2026-11-26).
7
7
  *
8
8
  * Each field says which effect draws it, its label, and how a card deals it: the effect's settings, the card's ground
9
9
  * and ink, what shows before the effect starts (a CSS `still`, or markup laid `under` the canvas), and whether the name
@@ -18,6 +18,10 @@ import { mixOklab, parseColor, toHex } from '@arraypress/effects-astro/runtime/c
18
18
  import { lightLeakStill } from '@arraypress/effects-astro/runtime/light-leak';
19
19
  import { ditherStill } from '@arraypress/effects-astro/runtime/dither-field';
20
20
  import { gridStill } from '@arraypress/effects-astro/runtime/kinetic-grid';
21
+ import { gradientStill } from '@arraypress/effects-astro/runtime/dither-gradient';
22
+ import { truchetStill } from '@arraypress/effects-astro/runtime/truchet-field';
23
+ import { horizonStill } from '@arraypress/effects-astro/runtime/pixel-horizon';
24
+ import { glowStill } from '@arraypress/effects-astro/runtime/fluted-glow';
21
25
 
22
26
  /** The glyphs' face when the wall has no monospaced one. */
23
27
  export const MONO_FALLBACK = 'ui-monospace, SFMono-Regular, Menlo, monospace';
@@ -288,6 +292,128 @@ function kinetic({ pick, r, accent }) {
288
292
  return { cfg, ground, ink, still: gridStill(cfg, 1 / CARD) };
289
293
  }
290
294
 
295
+ /* ---------- Dithered gradient (effects-astro's ditherGradient, after the owner's references, 2026-11-26) ---------- */
296
+
297
+ /** Dithered gradient cards' colours: ground, [dim, bright], the lockup's ink. */
298
+ const gradientInksOf = (accent) => [
299
+ ['#0B0B0B', ['#2D3A08', accent], '#F4F3EF'], // acid
300
+ ['#081226', ['#5A0F4A', '#FF1F8F'], '#F4F3EF'], // hot pink on midnight
301
+ ['#060A1F', ['#1C2F7A', '#F4F3EF'], '#F4F3EF'], // moonlight on cobalt
302
+ ['#2A0612', ['#0E5A5A', '#4FE3E8'], '#F4F3EF'], // cyan on maroon
303
+ ['#0B0B0B', ['#5A1A08', '#FF3D00'], '#F4F3EF'], // signal
304
+ ['#F4F3EF', ['#9AA6C6', '#0038FF'], '#0B0B0B'], // paper
305
+ ];
306
+
307
+ /** dithergrad: a soft gradient drawn only in dots (a wavy horizon, a band of light, a swirl, a pinwheel or falling steps),
308
+ * square dots an ordered dither thins out or round halftone dots that shrink. */
309
+ function dithergrad({ pick, r, accent }) {
310
+ const [ground, colors, ink] = pick(gradientInksOf(accent));
311
+ const shape = pick(['wave', 'wave', 'band', 'swirl', 'pinwheel', 'steps']);
312
+ const mode = shape === 'band' ? pick(['halftone', 'halftone', 'bayer']) : pick(['bayer', 'bayer', 'halftone']);
313
+ const cfg = {
314
+ colors,
315
+ background: ground,
316
+ shape,
317
+ mode,
318
+ dot: mode === 'halftone' ? pick([5, 6]) : 4,
319
+ ...(shape === 'wave' ? { angle: pick([0, 0, 90, 180, 270]), level: between(r, 0.12, 0.2) } : {}),
320
+ ...(shape === 'band' ? { angle: pick([35, -35, 145, -145]), level: between(r, -0.2, 0.2), soft: between(r, 0.3, 0.4) } : {}),
321
+ ...(shape === 'swirl' ? { arms: pick([2, 3]), twist: between(r, 1.5, 2.5), soft: 0.5 } : {}),
322
+ ...(shape === 'pinwheel' ? { arms: pick([4, 5, 6]), twist: between(r, 1, 2), soft: 0.4 } : {}),
323
+ ...(shape === 'steps' ? { level: between(r, 0.18, 0.24), block: pick([5, 6, 7]) } : {}),
324
+ rate: between(r, 0.04, 0.07),
325
+ offset: offsetOf(r),
326
+ quiet: { radius: 0.5, depth: 1 },
327
+ };
328
+ return { cfg, ground, ink, still: gradientStill(cfg) };
329
+ }
330
+
331
+ /* ---------- Truchet tiles (effects-astro's truchetField, after the owner's references, 2026-11-26) ---------- */
332
+
333
+ /** Truchet cards' colours: ground, [dim line, bright line], the lockup's ink, and whether the lines are shaded as tubes. */
334
+ const truchetInksOf = (accent) => [
335
+ ['#0B0B0B', ['#3A3A3A', '#F4F3EF'], '#F4F3EF', true], // graphite tubes
336
+ ['#0B0B0B', ['#2D3A08', accent], '#F4F3EF', false], // acid
337
+ ['#0038FF', ['#3D5CFF', '#FFFFFF'], '#FFFFFF', true], // cobalt
338
+ ['#F4F3EF', ['#C9C6BD', '#0B0B0B'], '#0B0B0B', false], // paper
339
+ ['#0B0B0B', ['#5A1A08', '#FF3D00'], '#F4F3EF', true], // signal
340
+ ['#03140B', ['#0E5A35', '#39FF88'], '#F4F3EF', false], // phosphor
341
+ ];
342
+
343
+ /** truchet: quarter-arc tiles joining into loops and S-bends, a few turning at a time, bright patches drifting through. */
344
+ function truchet({ pick, r, accent }) {
345
+ const [ground, colors, ink, tube] = pick(truchetInksOf(accent));
346
+ const cfg = {
347
+ colors,
348
+ background: ground,
349
+ tile: pick([22, 26, 30]),
350
+ width: between(r, 0.22, 0.28),
351
+ tube,
352
+ seed: Math.round(r() * 1000),
353
+ quiet: { radius: 0.5, depth: 0.9 },
354
+ };
355
+ return { cfg, ground, ink, still: truchetStill(cfg) };
356
+ }
357
+
358
+ /* ---------- Pixel horizon (effects-astro's pixelHorizon, after the owner's references, 2026-11-26) ---------- */
359
+
360
+ /** Pixel horizon cards' colours: ground, [fill, the frontier's colour], the lockup's ink. */
361
+ const horizonInksOf = (accent) => [
362
+ ['#0B0B0B', [accent, accent], '#F4F3EF'], // acid
363
+ [accent, ['#0B0B0B', '#0B0B0B'], '#0B0B0B'], // ink on acid
364
+ ['#0F1A12', ['#6BE36B', '#2A6B2A'], '#F4F3EF'], // phosphor
365
+ ['#F4F3EF', ['#FF3D00', '#FF9B7A'], '#0B0B0B'], // signal on paper
366
+ ['#060A1F', ['#5D8BFF', '#1C2F7A'], '#F4F3EF'], // cobalt
367
+ ['#1A0B14', ['#FF5C64', '#7B3FF2'], '#F4F3EF'], // coral
368
+ ];
369
+
370
+ /** pixelhorizon: a flat colour filling one side and breaking up into square blocks, winking along a swaying frontier. */
371
+ function pixelhorizon({ pick, r, accent }) {
372
+ const [ground, colors, ink] = pick(horizonInksOf(accent));
373
+ const cfg = {
374
+ colors,
375
+ background: ground,
376
+ side: pick(['bottom', 'bottom', 'right', 'left', 'top']),
377
+ block: pick([12, 14, 16]),
378
+ // the frontier kept under the lockup's name (the lockup's middle sits at about 0.45 across from any side)
379
+ level: between(r, 0.2, 0.27),
380
+ spread: between(r, 0.2, 0.3),
381
+ seed: Math.round(r() * 1000),
382
+ quiet: { radius: 0.42, depth: 1 },
383
+ };
384
+ return { cfg, ground, ink, still: horizonStill(cfg) };
385
+ }
386
+
387
+ /* ---------- Reeded glow (effects-astro's flutedGlow, after the owner's references, 2026-11-26) ---------- */
388
+
389
+ /** Reeded glow cards' colours: ground, the light [deep, mid, hot], the lockup's ink. */
390
+ const glowInksOf = (accent) => [
391
+ ['#08070C', ['#3A1A7A', '#8F7CFF', '#F2EEFF'], '#F4F3EF'], // violet
392
+ ['#050302', ['#7A1D00', '#FF7A00', '#FFD27A'], '#F4F3EF'], // amber
393
+ ['#120202', ['#5A0A04', '#FF3D00', '#FFB38A'], '#F4F3EF'], // signal
394
+ ['#03100A', ['#0E5A35', '#2FE07A', '#D9FFE8'], '#F4F3EF'], // phosphor
395
+ ['#070904', ['#2D3A08', accent, '#F4FFD0'], '#F4F3EF'], // acid
396
+ ['#03051A', ['#0B1A6E', '#3D6BFF', '#DDE6FF'], '#F4F3EF'], // cobalt
397
+ ];
398
+
399
+ /** flutedglow: a ring, orb or rising light through upright reeded glass, breathing slowly, the lockup sharp in front. */
400
+ function flutedglow({ pick, r, accent }) {
401
+ const [ground, colors, ink] = pick(glowInksOf(accent));
402
+ const shape = pick(['ring', 'ring', 'orb', 'rise']);
403
+ const cfg = {
404
+ colors,
405
+ background: ground,
406
+ shape,
407
+ flutes: pick([12, 14, 16, 18]),
408
+ ...(shape === 'ring' ? { size: between(r, 0.28, 0.33) } : {}),
409
+ ...(shape === 'orb' ? { size: between(r, 0.36, 0.44), centre: pick([[0.3, 0.75], [0.7, 0.25], [0.5, 0.82]]) } : {}),
410
+ ...(shape === 'rise' ? { size: between(r, 0.5, 0.6) } : {}),
411
+ seed: Math.round(r() * 1000) / 100,
412
+ quiet: shape === 'ring' ? { radius: 0.2, depth: 0.5 } : { radius: 0.35, depth: 0.55 },
413
+ };
414
+ return { cfg, ground, ink, still: glowStill(cfg, CARD) };
415
+ }
416
+
291
417
  /* ---------- the table ---------- */
292
418
 
293
419
  /** The field cards by kind: the effect that draws each (effects-astro's runtime, by its file name), its label, and its
@@ -300,6 +426,10 @@ export const FIELDS = {
300
426
  voronoi: { effect: 'voronoi-mesh', label: 'Voronoi mesh', deal: voronoi },
301
427
  dither: { effect: 'dither-field', label: 'Dither field', deal: dither },
302
428
  kinetic: { effect: 'kinetic-grid', label: 'Kinetic grid', deal: kinetic },
429
+ dithergrad: { effect: 'dither-gradient', label: 'Dithered gradient', deal: dithergrad },
430
+ truchet: { effect: 'truchet-field', label: 'Truchet tiles', deal: truchet },
431
+ pixelhorizon: { effect: 'pixel-horizon', label: 'Pixel horizon', deal: pixelhorizon },
432
+ flutedglow: { effect: 'fluted-glow', label: 'Reeded glow', deal: flutedglow },
303
433
  };
304
434
 
305
435
  /** Whether a kind is a field card. */
package/src/live.js CHANGED
@@ -22,6 +22,10 @@ const FIELD_EFFECTS = {
22
22
  'voronoi-mesh': () => import('@arraypress/effects-astro/runtime/voronoi-mesh').then((m) => m.voronoiMesh),
23
23
  'dither-field': () => import('@arraypress/effects-astro/runtime/dither-field').then((m) => m.ditherField),
24
24
  'kinetic-grid': () => import('@arraypress/effects-astro/runtime/kinetic-grid').then((m) => m.kineticGrid),
25
+ 'dither-gradient': () => import('@arraypress/effects-astro/runtime/dither-gradient').then((m) => m.ditherGradient),
26
+ 'truchet-field': () => import('@arraypress/effects-astro/runtime/truchet-field').then((m) => m.truchetField),
27
+ 'pixel-horizon': () => import('@arraypress/effects-astro/runtime/pixel-horizon').then((m) => m.pixelHorizon),
28
+ 'fluted-glow': () => import('@arraypress/effects-astro/runtime/fluted-glow').then((m) => m.flutedGlow),
25
29
  };
26
30
 
27
31
  /**