Skip to content

Promote dev: WASM showcase terminal-instrument rework - #103

Merged
tamirelazar merged 5 commits into
masterfrom
dev
Jun 30, 2026
Merged

Promote dev: WASM showcase terminal-instrument rework#103
tamirelazar merged 5 commits into
masterfrom
dev

Conversation

@tamirelazar

Copy link
Copy Markdown
Owner

Promote devmaster. Runs the full 3-OS matrix; on merge, pages.yml deploys the updated showcase to GitHub Pages.

Included (#102)

Reworks the live WASM demo from a centered landing page into a terminal-instrument:

  • ANSI render brightness lifted off the dark frame; Slime palette default (vivid green network)
  • warm-dark field, green as the single cold accent
  • square inset screen with corner ticks and solid raised HUD plates
  • command-line controls (clickable --preset / --palette tokens, live-swap) replacing the web pills
  • palette-reactive chevron + --palette token; per-preset note with gentle auto-fade
  • mono headline, trimmed copy, header version injected from Cargo.toml at build time

Test plan

  • pnpm build green; cargo clippy --target wasm32 clean (2 pre-existing dead-code warnings)
  • Verified on local prod build, desktop + mobile: render vividness, cycling + live-swap, recolor responses, preset-note fade, pause, responsive layout

The WASM ANSI render auto-normalizes its white point, which left the
sparse Physarum network reading faint on the page's dark frame. Scale the
adaptive divisor by a 1.6 brightness multiplier so midtones surface, and
expose set_brightness() to make the lever tunable from JS without a rebuild.
- Hero renders in FiraCode mono (was the OS default sans), matching the
  wordmark so the terminal identity carries the most prominent text.
- Warm the neutrals toward the gold brand: page bg, dim ink, borders and
  the frame glow were tinted cool/olive; align them warm.
- Add an SVG favicon (fixes the /favicon.ico 404) and a theme-color meta.
- Replace the em dash in the blurb with parentheses; use a colon in the title.
- Warm a freshly-switched preset before painting so it lands on a formed
  network instead of flashing empty.
Redesign the live demo page around a recessed terminal screen rather than
a landing-page card:

- ASCII render on the Slime palette with a brightness lift so the Physarum
  veins stay legible (adaptive white-point alone left them faint)
- warm-dark field with green as the single accent (cold over warm)
- square, inset screen: inner-shadow well, corner registration ticks, and
  bordered bezel tags (live / run-pause status / telemetry readout)
- command-line controls — clickable --preset / --palette tokens that cycle
  and live-swap — replacing the web pills
- space-to-pause legend in the bottom readout; blinking cursor + cycle hint
  retire after the first cycle interaction
- mono headline, trimmed copy, version injected from Cargo.toml at build time
- chevron (and the --palette token) recolor to a slime-parallel accent of
  the active palette (Slime/Warm/Ocean/Mono/Heat) as a live visual response
- per-preset note replaces the cycle hint after the first preset cycle, and
  fades out gently after a long dwell; palette-first interactions leave it
  empty until a preset is cycled
- HUD tags float inward over the sim as solid, raised plates (drop shadow +
  bevel) instead of bezel-cut labels
Rework WASM showcase as a terminal instrument
@tamirelazar
tamirelazar merged commit e91b2fb into master Jun 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant