Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Monitor = {}
- Monitor[0] = term -- sets Monitor[0] to term
- local logo = {}
- logo.pos = {}
- logo.subpos = {}
- logo.str = {}
- logo.substr = {}
- logo.col = {}
- logo.str[1] = " "
- logo.str[2] = " "
- logo.str[3] = " "
- logo.str[4] = " "
- logo.substr[1] = " "
- logo.substr[2] = " "
- logo.substr[3] = " "
- logo.substr[4] = " "
- function drawLogo(WhatScreen, What, X, Y)
- if WhatScreen.isColor then
- logo.col[1] = colors.lime
- logo.col[2] = colors.red
- logo.col[3] = colors.blue
- logo.col[4] = colors.orange
- else
- logo.col[1] = colors.white
- logo.col[2] = colors.white
- logo.col[3] = colors.white
- logo.col[4] = colors.white
- end
- if What == "Head" then
- for i = 1, 4 do
- local xa, ya
- if i == 1 then
- xa, ya = X, Y + 1
- elseif i == 2 then
- xa, ya = X + string.len(logo.str[i - 1]), Y
- elseif i == 3 then
- xa, ya = X + 1, Y + 5
- elseif i == 4 then
- xa, ya = X + 1 + string.len(logo.str[i - 1]), Y + 4
- end
- for I = 1, 4 do
- WhatScreen.setCursorPos(xa, ya)
- WhatScreen.setBackgroundColor(logo.col[i])
- WhatScreen.write(logo.str[i])
- WhatScreen.setBackgroundColor(colors.black)
- ya = ya + 1
- end
- end
- elseif What == "Sub" then
- for i = 1, 4 do
- local xa, ya
- if i == 1 then
- xa, ya = X, Y + 1
- elseif i == 2 then
- xa, ya = X + string.len(logo.substr[i - 1]), Y
- elseif i == 3 then
- xa, ya = X + 1, Y + 3
- elseif i == 4 then
- xa, ya = X + 1 + string.len(logo.substr[i - 1]), Y + 2
- end
- for I = 1, 2 do
- WhatScreen.setCursorPos(xa, ya)
- WhatScreen.setBackgroundColor(logo.col[i])
- WhatScreen.write(logo.substr[i])
- WhatScreen.setBackgroundColor(colors.black)
- ya = ya + 1
- end
- end
- end
- end
- drawLogo(term, "Sub", 1, 1)
Advertisement
Add Comment
Please, Sign In to add comment