Posted 31 March 2013 - 06:58 AM
I'm trying to draw an image to the monitor. It works fine in the terminal, and I tried using term.redirect to get it to the monitor, as suggested in another thread and that's where things go wrong.
my code:
logo = paintutils.loadImage("logo1")
term.redirect(mon)
mon.paintutils.drawimage(logo,1,4)
term.restore()
I get error: "attempt to index (?) a nil value" at the drawImage line.
my code:
logo = paintutils.loadImage("logo1")
term.redirect(mon)
mon.paintutils.drawimage(logo,1,4)
term.restore()
I get error: "attempt to index (?) a nil value" at the drawImage line.