paintutils.drawLine
From ComputerCraft Wiki
Revision as of 00:06, 12 July 2013 by 1lann (Talk | contribs) (Small code fixes and changed colour to colours)
| Draw a line on the screen from (startX startY) to (endX endY) | |
| Syntax | paintutils.drawLine(int startX, int startY, int endX, int endY, colour colour) |
| Returns | nil |
| Part of | ComputerCraft |
| API | paintutils |
Examples
| This code will draw a red line from the position (1, 2) to the position (9, 10) | |
| Code |
paintutils.drawLine(1, 2, 9, 10, colours.red) |