A gradient coil adds a linear field variation on top of B0, so the Larmor frequency — and therefore the precession you saw in the Spins demo — becomes position-dependent. That's the entire trick behind spatial encoding. Pick a mode below to see each gradient's job. (Rotation speeds here are wildly exaggerated for visibility — real Larmor frequencies are tens of MHz.)