lightgun-poc / lib/virtual / renderAimLine
Function: renderAimLine()
renderAimLine(
u,v,x,y,width?):string
Defined in: lib/virtual.ts:60
One line of aim visualization: numbers plus a coarse position bar per axis.
Off-screen aim never reaches here — the cursor loop clamps to the screen before calling the device — so the bars only ever span [0..1].
ASCII only and one line per print, on purpose: it shares stdout with the jitter stats and connection logs, and it has to stay readable in cmd.exe.
Parameters
u
number
v
number
x
number
y
number
width?
number = 12
Returns
string