Posted 26 November 2013 - 11:46 AM
Hi im very new to computer craft and im having a bit of trouble.
I created a background that I would like to use for a program im making, so I did
paint .background and saved it.
Im trying to display the background to monitors, but it only displays to the terminal.
Here is my code, sorry if its a mess, I only started yesterday :P/>
m = peripheral.wrap("top")
m.clear()
m.setCursorPos(1,1)
slc = 0
tBarC = 8
tBartC = 1
backColor = 1
m.setBackgroundColor(backColor)
m.clear()
function titleBar()
m.setCursorPos(1,1)
m.setBackgroundColor(tBarC)
m.setTextColor(tBartC)
m.clearLine()
m.setCursorPos(3, 1)
print("[Example]")
end
function drawDesktop()
m.setBackgroundColor(backColor)
m.clear()
bground = paintutils.loadImage(".background")
paintutils.drawImage(bground,1,1)
titleBar()
end
drawDesktop()
Any ideas on how I should draw it to the monitor? Because paintutils.loadimage and drawImage is only displaying to the terminal.
Thanks, Matt
I created a background that I would like to use for a program im making, so I did
paint .background and saved it.
Im trying to display the background to monitors, but it only displays to the terminal.
Here is my code, sorry if its a mess, I only started yesterday :P/>
m = peripheral.wrap("top")
m.clear()
m.setCursorPos(1,1)
slc = 0
tBarC = 8
tBartC = 1
backColor = 1
m.setBackgroundColor(backColor)
m.clear()
function titleBar()
m.setCursorPos(1,1)
m.setBackgroundColor(tBarC)
m.setTextColor(tBartC)
m.clearLine()
m.setCursorPos(3, 1)
print("[Example]")
end
function drawDesktop()
m.setBackgroundColor(backColor)
m.clear()
bground = paintutils.loadImage(".background")
paintutils.drawImage(bground,1,1)
titleBar()
end
drawDesktop()
Any ideas on how I should draw it to the monitor? Because paintutils.loadimage and drawImage is only displaying to the terminal.
Thanks, Matt