From 17c50de661cf1936b68da32e54fc6ea4594db894 Mon Sep 17 00:00:00 2001 From: ruv Date: Sat, 3 Oct 2026 18:38:15 -0400 Subject: [PATCH] feat(ruflo-console): subtler title glitch (ADR-433) Co-Authored-By: RuFlo --- plugins/ruflo-console/hooks/gfx/pictures.ts | 6 +++--- .../ADR-433-console-menu-entry-and-page-title-strike-in.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/ruflo-console/hooks/gfx/pictures.ts b/plugins/ruflo-console/hooks/gfx/pictures.ts index 8d07124645..bbbe5cfa64 100644 --- a/plugins/ruflo-console/hooks/gfx/pictures.ts +++ b/plugins/ruflo-console/hooks/gfx/pictures.ts @@ -333,14 +333,14 @@ export function titlePicture(name: string, columns: number, t: number, age = Inf if (x > lead + 1) grid.set(x, y, '░▒▓█'[hash(x * 7 + y + Math.floor(age / 60)) % 4] as string, mix(0x3a0f2e, NEON_CYAN, 0.35)) else if (x > lead - 1.5) grid.set(x, y, grid.glyph(x, y), 0xffffff) // Behind the edge the letters are settled but still glitching: some flip to an ASCII character for a frame, pink or cyan, less as the entry ends. - else if (hash(x * 13 + y * 7 + Math.floor(age / 50)) % 100 < 14 * (1 - age / TITLE_ENTRY_MS)) grid.set(x, y, GLITCH[hash(x + y + Math.floor(age / 50)) % GLITCH.length] as string, hash(x + Math.floor(age / 50)) % 2 === 0 ? 0xff2a6d : 0x05d9e8) + else if (hash(x * 13 + y * 7 + Math.floor(age / 50)) % 100 < 4 * (1 - age / TITLE_ENTRY_MS)) grid.set(x, y, GLITCH[hash(x + y + Math.floor(age / 50)) % GLITCH.length] as string, hash(x + Math.floor(age / 50)) % 2 === 0 ? 0xff2a6d : 0x05d9e8) } // And now and then a whole row slips sideways a cell or two, and snaps back. const slip = hash(y * 5 + Math.floor(age / 80)) - if (slip % 6 === 0 && age < TITLE_ENTRY_MS - 150) { - const by = 1 + (slip >>> 3) % 2 * (slip % 2 === 0 ? 1 : -1) + if (slip % 16 === 0 && age < TITLE_ENTRY_MS - 150) { + const by = (slip >>> 4) % 2 === 0 ? 1 : -1 const row = grid.cells.slice(y * columns * 3, (y + 1) * columns * 3) for (let x = x0; x < Math.min(columns, x0 + width); x++) grid.cells.set(row.slice(Math.max(0, x - by) * 3, Math.max(0, x - by) * 3 + 3), (y * columns + x) * 3) diff --git a/v3/docs/adr/ADR-433-console-menu-entry-and-page-title-strike-in.md b/v3/docs/adr/ADR-433-console-menu-entry-and-page-title-strike-in.md index 07de69c223..e04c21cb28 100644 --- a/v3/docs/adr/ADR-433-console-menu-entry-and-page-title-strike-in.md +++ b/v3/docs/adr/ADR-433-console-menu-entry-and-page-title-strike-in.md @@ -21,4 +21,4 @@ Seen only as text and element trees, not on a terminal. A press on an entry whil ## 3. Amendment: ASCII glitch in the strike-in -Behind the leading edge, a share of the settled letters (14%, fading to none by the end) flip for a frame to an ASCII character (`#%&@/\|<>=+*`) in pink or cyan, and a title row now and then slips sideways one or two cells and snaps back. Hash-driven, so reproducible; none once the 1.2 s are over (spec: glitch characters appear during the entry and the finished title has none). +Behind the leading edge, a share of the settled letters (4%, fading to none by the end; first tried at 14%, too loud) flip for a frame to an ASCII character (`#%&@/\|<>=+*`) in pink or cyan, and a title row now and then slips sideways one cell (about one frame in sixteen) and snaps back. Hash-driven, so reproducible; none once the 1.2 s are over (spec: glitch characters appear during the entry and the finished title has none).