Geodesics on a flat torus T² wind at slope dy/dx = tan(α). When α/π is rational, the geodesic is periodic; when irrational, it is dense — visiting every region of the torus (ergodic). Drag to rotate. Adjust angle to watch the transition.