LINE ​
Draws a straight line between two points.
Syntax ​
leo-grammar
LINE [ x1:measureValue ] [ y1:measureValue ] [ x2:measureValue ] [ y2:measureValue ] .Parameters ​
x1(measureValue, optional) - The x-coordinate of the first point. The default is0cm.y1(measureValue, optional) - The y-coordinate of the first point. The default is0cm.x2(measureValue, optional) - The x-coordinate of the second point. The default is0cm.y2(measureValue, optional) - The y-coordinate of the second point. The default is0cm.
Details ​
The style of this command is defined by the PEN command.
If both the first and second point have the same coordinates, then this basically draws a point.
See Also ​
Examples ​
Draw a simple diagonal line with a thickness of 3pt.
leo
GRAPHREP
SHADOW off
PEN w:3pt
LINE x1:0cm y1:0cm x2:1.0cm y2:1.0cmVersions and Changes ​
Available since ADOxx 1.3