Line
Line (Statement)
Format
line x1_position, y1_position, x2_position, y2_position
line ( x1_position, y1_position, y2_position, y2_position )
Description
Draws a line from the point (x1_position, y1_position) to the point (x2_position, y2_position) with the current pen color. The width of the line may be adjusted using the PenWidth statement.
The coordinates may be whole numbers or fractions. They are measured in pixels unless a Window has been set, in which case they are in the units that window defines.
Example
clg
color black
line 50,50,200,200
penwidth 5
line 100,200,200,200
penwidth 10
line 100,200,50,50
draws
See Also
Arc, Chord, Circle, GetPenWidth, Line, PenWidth, Pie, Plot, Poly, Rect, Stamp, Window