WebAssembly renderer · flat attractor-label colors · pan, zoom, and trace the fractal basin
Made by John Dews-Flick 2026
Each pixel is an initial pendulum position. The solver integrates a damped point mass pulled by fixed magnets, then colors the pixel by the magnet closest to the final resting point.
The left side, r'', is acceleration. The right side adds up three effects: magnetic attraction toward each magnet, a weak spring pulling the pendulum back toward the origin, and damping that removes energy over time.
A basin boundary appears where tiny changes in the starting point send the bob to different final magnets. That sensitivity is what creates the fractal structure.
The 3D trace mode replays that same equation for one selected initial point, showing the path from initial condition to attractor instead of only the final basin color.