pastebin get MLHxfiZ5 drawmon
^draw image on monitor api
example of using it:
os.loadAPI("drawmon") --load the API
local m = peripheral.wrap("left") --or somewhere else
local image = paintutils.loadImage("/potato") --The Image to load
drawmon.drawImage(m, image, 2, 2) --draws my potato image at 2,2, supply the name of the monitor as the first parameter. in this case, m.
so bassicly in your own code it would look like this:
os.loadAPI("drawmon")
logo = paintutils.loadImage("logo")
m = peripheral.wrap("monitor_0")
m.clear()
m.setCursorPos(1,1)
drawmon.drawImage(m, logo, 1, 1)
Edited by Zambonie, 18 March 2015 - 01:36 AM.