Crystal Lattice Unit Cells (2D)
A top-down 2D companion to the 3D crystal lattice scene: pick SC, BCC, FCC or HCP and inspect its unit cell as a projection or a live z-slice cross-section, with packing fraction computed on the fly.
This top-down companion renders the same four unit cells as the 3D crystal lattice scene — simple cubic, body-centered cubic, face-centered cubic and hexagonal close-packed — viewed flat from above instead of orbited in 3D. Projection mode flattens a full cell's atoms onto the page with depth shown only as a brightness cue, while cross-section mode sweeps a horizontal cutting plane through the stacked spheres and draws the exact circle each one leaves behind at that height. Atoms per cell, coordination number, nearest-neighbour distance and packing fraction are all recomputed live from the current structure and atomic radius rather than looked up from a table, so scrubbing the radius slider away from the touching radius visibly opens gaps between spheres or forces them to overlap.
A top-down 2D view of the SC, BCC, FCC and HCP unit cells as a flattened projection or a live z-slice cross-section, with packing fraction and coordination number computed on the fly.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install