DRAWS A LINE BETWEEN THE POINTS (X1,Y1) AND (X2,Y2)
ACTION
The command 2D_LINE X1,Y1,X2,Y2 draws on the "2D target" system object (set by 2D_TARGET_IS), a line between the 2 different points (X1,Y1) and (X2,Y2). The line takes the drawing color set by 2D_PEN_COLOR, the drawing width set by 2D_PEN_WIDTH.
X1,Y1,X2,Y2 are expressed in pixels and the origin (0,0) of the coordinates is the upper left corner of the system object.
By default, the drawing color is black, the drawing width is 1 pixel, the "2D target" system object for drawing is : FORM number 0.
SYNTAX:
2D_LINE X1,Y1,X2,Y2
USE ERROR EXAMPLE
rem draw a line between (10,20) and (110,120)
2d_line 10,20,110,120
2D_LINE
2D_LINE X1,Y1,X2,Y2
SEE ALSO
2D_ARC
2D_CIRCLE
2D_RECTANGLE
2D_ELLIPSE
2D_POLY_FROM
2D_POLY_TO
2D_PEN_COLOR
2D_PEN_DASH
2D_PEN_DASH_DOT
2D_PEN_DASH_DOT_DOT
2D_PEN_DOT
2D_PEN_SOLID
2D_PEN_WIDTH