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

Paints on Monitors

Started by T_McLean51439, 10 May 2014 - 03:53 AM
T_McLean51439 #1
Posted 10 May 2014 - 05:53 AM
I have a quick question. When I try to run a paint on an advanced monitor I get the following error.

bios:339: [string "start"]:6: '=' expected

Anyone know what I can do to show a paint on an Advanced Monitor?
Lyqyd #2
Posted 10 May 2014 - 11:43 AM
Please post your code.
awsmazinggenius #3
Posted 10 May 2014 - 02:28 PM
You're using "monitor (side) paint", right?
viluon #4
Posted 10 May 2014 - 02:32 PM
You're using "monitor (side) paint", right?
Wouldn't work, you need to pass the filename (e.g. monitor right paint myPicture)
awsmazinggenius #5
Posted 10 May 2014 - 03:02 PM
Oh, right, I've just been testing my own program and it has a GUI to open files… derp.
T_McLean51439 #6
Posted 10 May 2014 - 10:38 PM
Well I've got the paint done, but I just want to show the painted image on my monitors.
viluon #7
Posted 11 May 2014 - 01:58 PM
Well I've got the paint done, but I just want to show the painted image on my monitors.
-_-/> post your code
T_McLean51439 #8
Posted 12 May 2014 - 03:41 AM
Well I've got the paint done, but I just want to show the painted image on my monitors.
-_-/> post your code
I don't have a code……………. I just want to do "monitor bottom smiley" which is the paint with the picture.
CometWolf #9
Posted 12 May 2014 - 09:09 AM
Lol, yeah that won't work. The picture is just that, a picture, not a program. You'll have to do something like this.

term.redirect(peripheral.wrap"monitor side")
paintutils.drawImage(paintutils.loadImage"imagePath")
term.restore()