Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local logo_lines = {" ", " r sssssssssss r ", " rrr sssssssss rrr ", " rrrrr sssss rrrrr ", " rrrrr sss rrrrr ", " rrrr rrrr ", " rrr rrr ", " rrrrrr rrrrrr ", " rrrrrrrrrr rrrrrrrrrr ", " rrrr rrrr ", " rrr rrr ", " rrrrrr rrrrrr ", " rrrrrrrrrr rrrrrrrrrr ", " rrrrrrrrr ", " rrrrr ", " ", " ", " ggg ", " ggg gggggg gg ", " gg gg ggg ggggggg gg ", " ggg gggg ggg gg gg ", " gg g gg ggg gg gg ", " ggg ggg ggg gg gg ", " ggg ggg ", " ", " "}
- local mon = peripheral.wrap("top")
- for y, line in ipairs(logo_lines) do
- mon.setCursorPos(1, y)
- for i = 1, #line do
- local s = string.sub(line, i, i)
- local function _2_(...)
- local _1_ = s
- if (_1_ == "r") then
- return colors.red
- elseif (_1_ == "s") then
- return colors.lightGray
- elseif (_1_ == "g") then
- return colors.gray
- elseif true then
- local _ = _1_
- return colors.black
- else
- return nil
- end
- end
- mon.setBackgroundColor(_2_(...))
- mon.write(" ")
- end
- end
- while true do
- os.pullEvent()
- end
- return nil
Add Comment
Please, Sign In to add comment