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

LineTo(X, Y)

Draws a line to the specified X, Y position from the current X, Y position using the current drawing color.

Parameters

X - Ending horizontal position of line
Y - Ending vertical position of line

Examples

BASIC

CALL LineTo(50, 75)

PASCAL

LineTo(50, 75);

BGI equivalent

void lineto(int x, int y);