Paintutils (API)

From ComputerCraft Wiki
Revision as of 22:19, 30 November 2012 by AfterLifeLochie (Talk | contribs) (Updated to API overview v2)

Jump to: navigation, search

Paintutils is an API to draw and load images

Grid disk.png   Paintutisl (API)

Method NameDescription
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.