Difference between revisions of "Paintutils (API)"
From ComputerCraft Wiki
LuaEclipser (Talk | contribs) |
LuaEclipser (Talk | contribs) |
||
Line 25: | Line 25: | ||
</table> | </table> | ||
<p style="font-size: 16px"> | <p style="font-size: 16px"> | ||
− | <strong>Note For " | + | <strong>Note</strong> For "Paintutils.loadImage" you must require the EXACT path. if the image is loacted at "disk/AfterLifeLochie/myPaint" then it would look like this"paintutils.loadImage("disk/AfterLifeLochie/myPiant")" |
− | + | ||
</P> | </P> | ||
[[Category:APIs]] | [[Category:APIs]] |
Revision as of 17:24, 28 March 2013
This page needs some serious TLC, stat! Please help us by cleaning it, fixing it up, or sparing it some love.
(Reason: Missing function pages Pokepal101 02:28, 29 December 2012 (MSK)) |
Paintutils is an API to draw and load images
Method Name | Description |
paintutils.loadImage(path) | Returns an image object. |
paintutils.drawImage(image, x, y) | Draws an image at (x, y) where image is an image object. |
paintutils.drawPixel(x, y, colour) | Draws a pixel at (x, y) in the colour specified. |
paintutils.drawLine(startX, startY, endX, endY, colour) | Draws a line from (startX, startY) to (endX, endY) in the colour specified. |
Note For "Paintutils.loadImage" you must require the EXACT path. if the image is loacted at "disk/AfterLifeLochie/myPaint" then it would look like this"paintutils.loadImage("disk/AfterLifeLochie/myPiant")"