Orbital lab

Every real spherical harmonic through l = 3. The superposition keeps evolving; each slider is how much that state is allowed to join in. Numbers on the right are the live coefficient right now.

click to zoom and orbit
interactive · click outside to release
ψ(θ,φ) = Σ clm · Ylm(θ,φ)

Ship it as a webview loader

loader.html on this page is the animation above distilled to ONE dependency-free file: raw WebGL, no Babylon, no CDN, no fonts, no fetch, about 21 KB. It boots instantly, which is the point: it plays while your webview's real content is still loading. The defaults are the tuned numbers; every knob is a URL parameter, and a fresh random state is rolled at every epoch so it never repeats.

Embed

<iframe src="loader.html"
        style="position:absolute;inset:0;width:100%;height:100%;border:0;background:#0d1117">
</iframe>
<!-- when your app is ready, fade the iframe out and remove it -->

Grab loader.html from this page's Files tab (or clone the repo) and serve it beside your app. It sizes to the limiting axis of any container, portrait or landscape.

Parameters

paramdefaultmeaning
pt4.5playground seconds of free evolution between epochs
dt3seconds to steer onto the mark, and back out
ct0.3seconds before the epoch the outline cheat fades in
st0seconds the mark is held dead still
logo100peak opacity of the flat teal mark, in percent
llead1seconds the logo fade starts before the sit and ends after it
tlead1.5seconds before the epoch the dark lobe fades to teal
ov10 makes the cheat its own act after the steer
intro10 skips the teal logo intro
interact01 arms click-to-zoom (for previews and demos, never load screens)

Live preview

This preview IS loader.html, inlined. What you embed is exactly what you see. Click it once and your wheel zooms; click anywhere else to give the wheel back to the page.