This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ElectricOverride's profile picture

Paintutils stuff

Started by ElectricOverride, 19 November 2012 - 02:23 AM
ElectricOverride #1
Posted 19 November 2012 - 03:23 AM
So, I checked the paintutils API on my adv computer, and I noticed paintutils.loadImage(path) and paintutils.drawImage(image,x,y).

I was just woundering what they did?
billysback #2
Posted 19 November 2012 - 03:33 AM
The open and write images in a .nfp format, loadImage() returns a table containing the image, use
image[x][y]
to acces pixel data I believe, drawImage(image, x, y) draws an image…

there was a post about making these types of posts earlier, there's a wiki and a search bar for a reason, please look at the wiki.