What you are looking at
1 · Waves add
Each source sends out circular ripples. At any point on the pond, the water height is simply the height from source A plus the height from source B. This is called superposition. Nothing else is going on.
Colour shows the height at this instant. Teal is a trough, ochre is a crest, and the dark middle is water that is not moving at all.
2 · Distance decides the band
Pick a point. It sits a distance r₁ from A and r₂ from B. The difference between those two distances decides what happens there.
bright (adds up): |r₁ − r₂| = m · λ dark (cancels): |r₁ − r₂| = (m + ½) · λλ is the wavelength and m is any whole number. Every point with the same difference lies on one curve, a hyperbola. That is why the bands fan out from between the sources.
3 · Spacing sets the count
The path difference can never be larger than the gap between the sources. So the number of bright bands is roughly twice the spacing divided by the wavelength, plus one. The Spacing / λ and Bright bands readouts show this live.
Push the sources closer than half a wavelength and the bands disappear. The pair then behaves almost like a single source.
4 · Phase slides the pattern
Phase difference starts source B part of a cycle late. At 0° the centre line is always bright, because both waves travel the same distance to reach it. At 180° every crest from A meets a trough from B on that line, so it turns dark. Values in between swing the whole fan toward the source that lags. Steering a beam with phase is how phased-array antennas and some ultrasound probes work.
Try this
- Turn on Nodal lines, then pull the sources apart slowly and count the lines as they appear.
- Halve the wavelength and watch the band count roughly double.
- Set phase to 180° and check that the centre line has gone still.
- Pause, then drag a source. The pattern recomputes even while paused.
How it is built
Each cell of a low-resolution grid stores two precomputed sums, one of sines and one of cosines, from both sources. Each frame then needs only u = S·cos ωt − C·sin ωt per cell, so dragging or changing a slider is the only expensive step. Amplitude falls gently with distance. A cell counts as a nodal line when its combined amplitude stays under 12% of the maximum. No libraries, canvas 2D, and the loop stops when the bench scrolls off screen or reduced motion is on.