Difference between revisions of "Paintutils (API)"

From ComputerCraft Wiki
Jump to: navigation, search
Line 3: Line 3:
 
==Methods==
 
==Methods==
 
{| border="1" cellpadding="2" cellspacing="0"
 
{| border="1" cellpadding="2" cellspacing="0"
!style="background:#EEE" width="210px"|Method name
+
!style="background:#EEE" width="250px"|Method name
 
!style="background:#EEE" width="*"|Description
 
!style="background:#EEE" width="*"|Description
 
|-
 
|-

Revision as of 13:51, 17 November 2012

Paintutils is an API to draw and load images

Methods

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.