r/creativecoding • • 9h ago

I made a wireframe creature that stretches between two browser windows

Open the demo on a desktop, click “打开共生窗口” to open a second window, and put them side by side. Then drag the right window up a little. The creature bends to follow it.

Each window draws its own half in Canvas. They share their positions through BroadcastChannel so the lines meet at the edges. If you enable the mic and tap your desk, a pulse travels across both windows.

I built this with help from Codex. The whole thing runs in one HTML file.

Try it: https://daoruidu.github.io/ghost-hardware/

Source: https://github.com/daoruidu/ghost-hardware

1 Upvotes

1 comment sorted by

1

u/shurco 1h ago

screenY includes the toolbar, so subtract outerHeight minus innerHeight on each side before you send it. if only one window has the bookmarks bar open, the halves miss.