Paintutils (API)
From ComputerCraft Wiki
Revision as of 09:56, 14 May 2013 by TheCoryKid (Talk | contribs) (Removed the NeedsWork (it no longer explained what needed work), adjusted column widths, changed int to number, added <em> tags.)
Paintutils is a default API for advanced computers which can draw pixels and lines, and load and draw image files.
Method Name | Description |
paintutils.loadImage(string path) | Returns an image object from path. |
paintutils.drawImage(table image, number x, number y) | Draws an image at (x, y) where image is an image object. |
paintutils.drawPixel(number x, number y, number colour) | Draws a pixel at (x, y) in the specified colour. |
paintutils.drawLine(number startX, number startY, number endX, number endY, number color) | Draws a line from (startX, startY) to (endX, endY) in the specified colour. |