Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("back")
- m.setTextScale(2)
- sx,sy = m.getSize()
- col = { ["white"]=1, ["orange"]=2, ["magenta"]=4, ["lightblue"]=8, ["yellow"]=16, ["lime"]=32, ["pink"]=64, ["gray"]=128, ["lightgray"]=256, ["cyan"]=512, ["purple"]=1024, ["blue"]=2048, ["brown"]=4096, ["green"]=8192, ["red"]=16384, ["black"]=32768 }
- function swrite(str,x,y,color)
- m.setCursorPos(x,y)
- m.setTextColor(col[color])
- m.write(str)
- end
- function swritecenter(str,y,color)
- m.setCursorPos((sx/2-#str/2)+1,y)
- m.setTextColor(col[color])
- m.write(str)
- end
- m.clear()
- swritecenter("Farms and",1,"blue")
- swritecenter("Production",2,"blue")
Advertisement
Add Comment
Please, Sign In to add comment