Difference between revisions of "Paintutils.drawLine"
From ComputerCraft Wiki
SuicidalSTDz (Talk | contribs) |
(Changed output.) |
||
Line 4: | Line 4: | ||
|args=[[int (type)|int]] startX, [[int (type)|int]] startY, [[int (type)|int]] endX, [[int (type)|int]] endY, [[colour (API)|colour]] colour | |args=[[int (type)|int]] startX, [[int (type)|int]] startY, [[int (type)|int]] endX, [[int (type)|int]] endY, [[colour (API)|colour]] colour | ||
|api=paintutils | |api=paintutils | ||
− | |returns= | + | |returns=nil |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Draw a line on the screen from (startX startY) to (endX endY) | |desc=Draw a line on the screen from (startX startY) to (endX endY) |
Revision as of 11:36, 23 April 2013
Function paintutils.drawLine | |
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
Example | |
This code will draw a red line from the position (1, 2) to the position (3, 4) | |
Code |
line = paintutils.drawLine(1, 2, 3, 4, colour.red) |