Skip to content

Simplify the Beams post and demo - #585

Merged
p13i merged 3 commits into
gh-pagesfrom
beams-simplify
Sep 7, 2026
Merged

Simplify the Beams post and demo#585
p13i merged 3 commits into
gh-pagesfrom
beams-simplify

Conversation

@p13i

@p13i p13i commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Simplify the Beams post and the demo it embeds.

Post:

  • Body is now two short paragraphs: what the simulation is, and the controls. The model and omissions sections are gone.
  • description is one sentence.
  • The canvas stands alone. Removed the start overlay, the Reset/Rays/Beams/Paths/Lobe/Fullscreen buttons, the echogram and its caption, the fallback box, and the CSS and inline script that served them.

static/beams/bridge.js (deletions only, indentation kept so the diff reads):

  • No longer bails when the fullscreen button is absent.
  • Dropped the echogram drawing, the layer-button wiring, the reset button, and the fullscreen handling. Web Audio playback, arrival polling, pointer and key dispatch, and URL state sync are unchanged.

static/beams/index.js and index_raytracer.wasm (second commit, mechanical): rebuilt from p13i/cs bf187bad3, which draws the scene as flat 1px lines with no on-canvas text, lobes, or pulses. The loader diff is two dropped imports; the wasm shrinks from 396 KB to 306 KB.

Verified in Safari against a local copy of the post: the module starts, the canvas draws grid, walls, source rings, listener marker, and paths; click steers, arrow and scene keys work, the URL updates, and arrivals reach the audio graph. No console errors.


Written by Claude

p13i added 2 commits September 7, 2026 13:31
Regen: bazelisk build //cs/apps/web/mycool.games:index_raytracer.js at p13i/cs bf187bad3, then copy index_raytracer.js and index_raytracer.wasm into static/beams/ and run prettier --print-width 60 --trailing-comma=none on index.js
@netlify

netlify Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploy Preview for p13i ready!

Name Link
🔨 Latest commit e2c719e
🔍 Latest deploy log https://app.netlify.com/projects/p13i/deploys/6a9f313576d93a0008a3e45e
😎 Deploy Preview https://deploy-preview-585--p13i.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@p13i
p13i merged commit 0f2f467 into gh-pages Sep 7, 2026
4 of 5 checks passed
@p13i
p13i deleted the beams-simplify branch September 7, 2026 21:53
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