paintutils.drawLine

From ComputerCraft Wiki
Revision as of 12:05, 29 March 2013 by SuicidalSTDz (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=paintutils.drawLine |args=int startX, int startY, int endX, int endY, [[colour (AP...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  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 To complete
Part of ComputerCraft
API paintutils

Examples

Grid paper.png  Example
This code will draw a red line from the position (1,2) to the position (2,4)
Code
line = paintutils.drawLine(1, 2, 2, 4, colour.red)