Line - r3n/rebol-wiki GitHub Wiki
The line command draws a line between two points using the current pen, line-width, and line-pattern (if it is set).
| Arg | Type | Description | Values |
|---|---|---|---|
| point1 | [pair!] | ||
| point2 | [pair!] | ||
| point3 | [pair!] | ||
| ... | [pair!] |
Notes and Examples
line 10x10 100x50
If more than two points are given multiple lines are drawn in a connected fashion:
line 10x10 20x50 30x0 4x40
Note that the end point is not connected to the first point. To do that, see the polygon command.
An example using pens and line attributes:
pen yellow line-width 8 line-pattern red 5 5 line 10x10 20x50 30x0 4x40
pen yellow line-width 5 line-cap round line 100x100 100x200 200X100 200X200