Beam sweep stops at center where the trace begins

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
rolandnsharp
2026-04-05 20:47:08 +10:00
parent 1c4ef163d7
commit 93c8be6e48

View File

@@ -80,9 +80,9 @@ proc crtTurnOn*(tb: var TerminalBuffer, w, h: int) =
tb.write(x, y, color, ch)
elif elapsed < OnBeamMs:
# Phase 5: Beam sweep — electron beam scans top to bottom
# Phase 5: Beam sweep — electron beam scans top to center
let beamRow = int((elapsed - OnStaticMs).float /
(OnBeamMs - OnStaticMs).float * h.float)
(OnBeamMs - OnStaticMs).float * (h.float / 2.0))
for y in 0..<h:
let dist = abs(y - beamRow)
if dist == 0: