LINE integer-expression, integer-expression, integer-expression, integer-expression
Draws a straight line from the first X,Y pair to the second X,Y pair using the current graphics colour (set by GCOL).
- Parameters are: x1, y1, x2, y2.
Examples
Basic usage
GCOL RGB(255,0,0)
LINE 50, 50, 200, 120
Crosshair
GCOL RGB(0,255,0)
LINE 120, 0, 120, 240
LINE 0, 120, 240, 120
Notes
- Coordinates are in screen pixels; (0,0) is the top-left of the display.
- Drawing uses the current graphics colour; change it with GCOL RGB(r,g,b) before calling LINE.
- Lines extending beyond the screen are clipped at the display edge.
See also:
GCOL · RECTANGLE · CIRCLE · PLOT · FLIP · AUTOFLIP