GM: draw line
From GMpedia.org Wiki
- The correct title of this article is draw_line(x1,y1,x2,y2). It appears incorrectly here because of technical restrictions.
|
draw_line() | |
| Type: | function |
| Arguments: | x1, y1 = Horizontal / vertical start of the line.
x2, y2 = Horizontal / vertical end of the line. |
| Limitations: | must be in Draw Event or used with Surfaces. |
This function draws a 1 pixel line from x1,y1 to x2,y2. To draw a horizontal line, both y1 and y2 should be the same number, To draw a vertical line, both x1 and x2 should be the same number.
[edit] See Also
This article was originally found at the Game Maker Knowledge Base, contributed by nickydude.
See the talk page for details
See the talk page for details

