The yellow point rides on the crest of the wave. Drag it up and down to change the number in front of the sine, the amplitude: how tall the wave is. What happens when it is negative? When it is zero?
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.