The current code in the wave box visualisation mode causes the gradient of the wave to be horizontal at each known point, this technique attempts to smooth out the wave by making the gradient at each point the gradient between its two neighbouring points.
The current code in the wave box visualisation mode causes the gradient of the wave to be horizontal at each known point, this technique attempts to smooth out the wave by making the gradient at each point the gradient between its two neighbouring points.
Before:
After: