Five sine waves · synchronized 40-slot buffers

Phases: 0, π/8, π/4, 3π/8, π/2. Each update calculates and draws one segment for all five waves before the next update begins.

Each row is a separate 40-slot array. Empty cells contain 9999.99; colored cells hold segment coordinates. The white outline marks counter % 40. At capacity there are 200 retained segments: 40 per wave.