method
Screen.line
Screen.line(x1, y1, x2, y2, color)
Draws a one-pixel line from (x1, y1) to (x2, y2) in color, using an integer Bresenham walk so it looks the same on every platform. Use it for lasers, tethers, debug rays, and vector art. Draw during the Render phase.
Example
program Demo {
handler DrawWorld phase Render {
Screen.clear(Color.MidnightBlue)
Screen.line(x1: px, y1: py, x2: tx, y2: ty, color: Color.White)
Screen.show()
}
}