Watch a particle trace a path on a 3D torus: 0 for major circle crossings, 1 for minor circle crossings
The particle moves on a 3D torus with parametric equations: θ₁(t) = t and θ₂(t) = slope·t. You can use either an irrational slope (like √2, φ, or π) or a rational ratio p/q.
When the slope is irrational, the path never repeats and creates an aperiodic Sturmian sequence. When it's rational (p/q), the path closes after q loops around the major circle and p loops around the minor circle, creating a periodic sequence.