Move the slider to change the phase difference between the two waves. The purple wave shows the sum of the red and the blue waves.
The phase difference between two waves affects how they add. If they are in-phase, the wave amplitude will double. If they are out of phase, they will cancel.
Link to stand-alone sim: Here is a link to view the sim on its own, with no distractions.