Lab
A space for experiments
Things I build to understand how they work. Each one is interactive and open to being pushed around.
PhysicsTwo hundred balls and one cursorRigid-body circles under gravity. Sweep the cursor through the pile to shove them around.SpaceThe solar system, off its railsEight planets on integrated orbits, with rings and moons. Bend gravity to pull them off course, and click any of them to follow it.FluidsStable fluid, solved every frameAn incompressible Navier-Stokes solver running on the GPU. Drag to push dye through the velocity field.FractalsA strange attractor that will not sit stillTwo equations, four constants, and a shape with fractional dimension. Move the cursor to reshape it.ChaosA double pendulum that will not repeatTwo rods, two bobs, and sensitivity to initial conditions. Reset to see how tiny differences lead to wildly different paths.ChaosA flock that nobody leadsSeparation, alignment, cohesion: three simple rules and emergent swarm behavior. Move the cursor to scatter them.