Draw_Line

Draw_Line(X1, Y1, X2, Y2, Color)

 

Draw_Line is a call that draws a line segment from (X1,Y1) to (X2,Y2) in the given color.

 

Note:  A graphics window must be open when Draw_Line is called or a run-time error will occur.

 

Example:

 

Draw_Line(50,150,250,25,Green);

 

draws a green line from (50,150) to (250,25)