Posted 24 March 2014 - 11:22 AM
I'm trying to make something with the terminal glasses from openperipherals, but I don't understand how the colours work. I thought the colours were in hexadecimal, so I look it up on the internet and I founded this site: http://www.2createaw...rs.html#hextool.
My code is like this:
Is it maybe not in hexadecimal?
Also, does anyone knows what the screen with and length and height are? (I try to figure it out using something like this, but that isn't very precise:
My code is like this:
glass = peripheral.wrap("right")
glass.clear()
glass.addBox(0,0,100,420,0d0082,1)
And it says this, no matter what colour I try (unless it's 0x00000):
For input string: "0d0082"
Is it maybe not in hexadecimal?
Also, does anyone knows what the screen with and length and height are? (I try to figure it out using something like this, but that isn't very precise:
glass = peripheral.wrap("right")
local x = 0
local running = true
glass.clear()
while running do
timer = os.startTimer(0.01)
a = os.pullEvent()
if a == "key" then
running = false
print(x)
else
x = x + 1
glass.addBox(0,0,100,x,0x000000,1)
end
end