Particle Assembly Art

Three cards where 3,000 drifting white specks swirl together into a slowly turning DNA helix, a small molecule, and a diamond crystal lattice, hold the shape, then scatter back into dust.

How it works

This ports the three illustrations in the "Who it's for" section of spacex.com/starfall. On the live site each one is a 2D canvas driven by an Angular directive (canvas[starfallParticleArt]) that ships as plain client-side JavaScript. The demo is that code, de-minified, with the same constants and seeds.

Each model is built as a list of 3D points with weights. The helix is two strands sampled at even arc length over 2.2 turns, plus 24 dotted rungs (the middle one is an accent). The molecule is 24 atoms, each a core point plus a Fibonacci-sphere shell, joined by dotted single and double bonds. The lattice is diamond-cubic sites clipped to an octahedron (|x|+|y|+|z| ≤ 2.4), each a small ring of points, with dotted tetrahedral bonds. The list is scaled to a fixed radius and resampled to exactly 3,000 targets. Extra slots get weight 0, and those specks stay as dust and fade out.

The specks rest in one of two seeded dust layouts that drift on slow sines. Specks are paired with targets by angle around the centre, so the dust sweeps round into the shape instead of crossing over itself. Each speck also gets a delay that is shorter near the centre, so the core fills in first. A 10.4s loop holds dust for 1.2s, assembles over 2.4s (cubic ease in-out, plus a sideways swirl of sin(πe)·0.22 that makes each speck curve in), holds the model until 8.2s, then dissolves over 2.2s into the *other* dust layout. The model turns the whole time and is projected with simple perspective. Speck size and alpha come from depth, so the near side reads brighter and larger. Every speck is a fillRect in rgba(255,255,255,a), with no sprites or WebGL.

The three cards start 0.4s apart. Each canvas animates only while it is on screen (IntersectionObserver), and its clock pauses while hidden. Under prefers-reduced-motion it draws the finished model once and stops. Self-contained: no external scripts, fonts, or images.

How to use this file

This is a complete, self-contained HTML document — copy it verbatim rather than reconstructing it. Markdown version: https://fx.statico.io/effects/starfall-particle-art.md. Full writeup and live preview: https://fx.statico.io/demos/starfall-particle-art.

Source and credit

Effect originally seen on SpaceX Starfall (https://www.spacex.com/starfall) — credit to SpaceX. This is an independent recreation built from scratch for educational use; no proprietary source code was copied. Released under the Unlicense.

More

Terms used above are defined in the glossary. See also the site map, AGENTS.md and llms.txt.

Who it's for

Biomedical Research

Without gravity, biology accelerates and reorganizes. Build superior implants and layered biomaterials, advance oncology and stem-cell discovery, and grow organoids and replacement tissue.

Pharmaceutical Discovery

Gravity-driven convection and sedimentation degrades crystal quality on Earth. In microgravity, proteins and small-molecule drugs form smaller, more uniform crystals.

Materials Science

On Earth, buoyancy-driven convection and sedimentation impede crystal growth. Microgravity and the vacuum of space allow production of next-generation materials.