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:
@@ -80,9 +80,9 @@ proc crtTurnOn*(tb: var TerminalBuffer, w, h: int) =
|
|||||||
tb.write(x, y, color, ch)
|
tb.write(x, y, color, ch)
|
||||||
|
|
||||||
elif elapsed < OnBeamMs:
|
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 /
|
let beamRow = int((elapsed - OnStaticMs).float /
|
||||||
(OnBeamMs - OnStaticMs).float * h.float)
|
(OnBeamMs - OnStaticMs).float * (h.float / 2.0))
|
||||||
for y in 0..<h:
|
for y in 0..<h:
|
||||||
let dist = abs(y - beamRow)
|
let dist = abs(y - beamRow)
|
||||||
if dist == 0:
|
if dist == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user