Difference between revisions of "Paintutils (API)"

From ComputerCraft Wiki
Jump to: navigation, search
m (Function pages are all added)
m (Added a period. Blegh grammar.)
Line 1: Line 1:
 
{{NeedsWork|Function pages are added. When the time is appropriate, whoever deems that time, may take this NeedsWork template down'' [[User:SuicidalSTDz|SuicidalSTDz]] 20:40, 29 March 2013 (MSK)}}
 
{{NeedsWork|Function pages are added. When the time is appropriate, whoever deems that time, may take this NeedsWork template down'' [[User:SuicidalSTDz|SuicidalSTDz]] 20:40, 29 March 2013 (MSK)}}
  
Paintutils is an API to draw and load images
+
Paintutils is an API to draw and load images.
  
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">
 
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;">

Revision as of 18:41, 29 March 2013

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(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.