Paintutils (API)

From ComputerCraft Wiki
Revision as of 15:13, 2 May 2013 by Smiley43210 (Talk | contribs) (Added types)

Jump to: navigation, search
This page needs some serious TLC, stat!
Please help us by cleaning it, fixing it up, or sparing it some love.
(Reason: Function pages are added. When the time is appropriate, whoever deems that time, may take this NeedsWork template down SuicidalSTDz 20:40, 29 March 2013 (MSK))

Paintutils is an API to draw and load images.

Grid disk.png   Paintutils (API)

Method NameDescription
paintutils.loadImage(string path) Returns an image object.
paintutils.drawImage(image, int x, int y) Draws an image at (x, y) where image is an image object.
paintutils.drawPixel(int x, int y, int colour) Draws a pixel at (x, y) in the colour specified.
paintutils.drawLine(int startX, int startY, int endX, int endY, int color) Draws a line from (startX, startY) to (endX, endY) in the colour specified.