Work
Three-body ejection fractal
Every pixel is its own three-body problem. A GPU map of which star gets ejected, with binary-scattering probability tables.
- Year
- Source
- mate-h/bevy_threebody
RustBevyWGSLPhysics

Notes
Three equal stars start at rest: two at fixed positions, the third at the pixel. Each pixel is coloured by which star is ejected (gold, blue or red), or left dark if nobody has left after 200 crossing times.
The integration runs in WGSL compute shaders with a regularised logH integrator, and the first 1024² image refines progressively in about 12 seconds on an M5. There's a sensitivity mode that reruns at half the step size, an orbit inspector that replays a pixel in f64 on the CPU, and scattering tables for flybys, exchanges and ionisation.