Bypass navigation menu
RGB Classic Games
Keeping the classics alive
Currently hosting 566 great games!
Return to Chapter 2

ExtLine(X1, Y1, X2, Y2)

Draws a line from X1, Y1 to X2, Y2 using the current drawing color.

Parameters

X1 - Upper left horizontal position of line
Y1 - Upper left vertical position of line
X2 - Lower right horizontal position of line
Y2 - Lower right vertical position of line

Examples

BASIC

CALL ExtLine(10, 15, 100, 150)

PASCAL

ExtLine(10, 15, 100, 150);

BGI equivalent

void line(int x1, int y1, int x2, int y2);