Skip to content

Instantly share code, notes, and snippets.

View Pym's full-sized avatar

Pym Pym

View GitHub Profile
INFINIZOOM
Build infinizoom: a procedural infinite-zoom world. The deliverable is a self-contained BunJS project. Running `bun run server` must build and serve it (wire up the corresponding "server" script in package.json). Three local assets exist in this directory and must be used: ./macbook_interior.png (a real MacBook Pro teardown photo), ./apple_m4_scheme.png (Apple's M4 die floorplan diagram), and ./wallpaper.jpg (a 1920Γ—1200 desktop wallpaper photo). Load the wallpaper from this local file β€” never fetch content from external servers (the sole exception: three.js itself may be imported from a CDN by URL).
The world
A single 3D world is traveled indefinitely along a fixed camera track that zooms through these levels:
Main route: a room β†’ a desk β†’ a MacBook Pro β†’ inside the chassis β†’ the logic board β†’ the Apple M4 package β†’ the M4 die β†’ a performance core β†’ an integer ALU block β†’ a standard logic cell β†’ a FinFET transistor β†’ a material cross-section inside the fin β†’ the silicon crystal lattice β†’ one u