diff --git a/plugins/ruflo-console/hooks/gfx/orbital.ts b/plugins/ruflo-console/hooks/gfx/orbital.ts index 419d7111bf..330fac6835 100644 --- a/plugins/ruflo-console/hooks/gfx/orbital.ts +++ b/plugins/ruflo-console/hooks/gfx/orbital.ts @@ -9,6 +9,15 @@ const DIM = 0x596561 const BLACK = 0x000000 const TAU = Math.PI * 2 +// Original five-row ASCII wordmark. Small panes use the readable text lockup. +const WORDMARK = [ + '#### # # ##### # ### ', + '# # # # # # # #', + '#### # # #### # # #', + '# # # # # # # #', + '# # ### # ##### ### ', +] as const + // Coarse original continent silhouettes in longitude/latitude degrees, for decoration only. const LAND = [ [[-168, 65], [-130, 72], [-58, 49], [-82, 10], [-112, 28], [-125, 50]], @@ -72,19 +81,28 @@ export function orbitalHeader(label: string, columns: number, timeMs: number): G grid.set(x, 2, phase === 9 ? '|' : phase === 8 || phase === 10 ? '/' : phase === 7 || phase === 11 ? '.' : '_', phase >= 7 && phase <= 11 ? GREEN : DIM) } grid.text(Math.max(0, grid.columns - 10), 2, `[${'|/-\\'[Math.abs(tick) % 4]}] ORBIT`, RED) + if (grid.columns >= 30) grid.text(0, 3, ' ruvnet / agent swarm console', DIM) return grid } /** Checks are actual self-check results; the globe and sweep are explicitly decorative. */ export function orbitalBoot(project: string, columns: number, timeMs: number, checks?: readonly BootCheck[]): Grid { const grid = blank(columns, 22) - grid.text(0, 0, ' RUFLO / ORBITAL', RED) - grid.text(0, 1, ` ${project}`.slice(0, grid.columns), INK) - const globe = orbitalGlobe(Math.min(38, grid.columns), 14, timeMs) + if (grid.columns >= 30) { + const offset = Math.floor((grid.columns - WORDMARK[0].length) / 2) + const sweep = Math.floor((Number.isFinite(timeMs) ? timeMs : 0) / 160) % WORDMARK[0].length + WORDMARK.forEach((line, y) => { + for (let x = 0; x < line.length; x++) grid.set(offset + x, y, line[x]!, x === sweep ? INK : RED, BLACK) + }) + } else grid.text(0, 1, ' RUFLO', RED) + const brand = grid.columns >= 42 ? 'ruvnet / agent swarm console / ORBITAL' : 'ruvnet / ORBITAL' + grid.text(Math.max(0, Math.floor((grid.columns - brand.length) / 2)), 5, brand, DIM) + grid.text(0, 6, ` ${project}`.slice(0, grid.columns), INK) + const globe = orbitalGlobe(Math.min(38, grid.columns), 10, timeMs) const left = Math.floor((grid.columns - globe.columns) / 2) for (let y = 0; y < globe.rows; y++) for (let x = 0; x < globe.columns; x++) { const i = (y * globe.columns + x) * 3 - grid.set(left + x, y + 3, globe.cells[i]!, globe.cells[i + 1]!, BLACK) + grid.set(left + x, y + 7, globe.cells[i]!, globe.cells[i + 1]!, BLACK) } grid.text(0, 18, ' LOADING CONSOLE / decorative orbit', RED) const passed = checks?.filter(c => c.ok).length ?? 0