Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("blittle")
- local mon1 = peripheral.wrap("back")
- local mon2 = peripheral.wrap("monitor_4")
- local brand = function(bg) bg = bg or "0" --name
- return { height = 4, width = 32,
- {
- "\151\140\140\147\131\131\131\131\131\131\156\147\131\131\131\131\131\140\131\156\140\140\131\131\131\131\131\131\131\131\131\148",
- "\149\128\143\159\149\151\128\149\151\131\149\138\159\149\136\128\130\128\129\139\130\144\149\151\131\157\140\128\149\151\130\149",
- "\149\143\128\128\138\141\143\138\141\140\138\133\143\138\141\140\128\143\132\140\142\135\138\141\140\138\141\143\138\133\143\149",
- "\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143\143",
- }, {
- "f00fffffff0ffffff0f000fffffffff0",
- "ff0f0ff0ff00f00fffff0f0ff00f0f00",
- "ff44ffffffffffff4ffffffffffffff4",
- "ffffffffffffffffffffffffffffffff",
- }, {
- "0ff0000000f000000f0fff000000000f",
- "0ff0f0ff00ff0fff0f00f0f00ffff0ff",
- "4444444444444444444444444444444f",
- string.rep(bg:sub(1,1),32),
- },
- }
- end
- local arrow = {
- {
- "\128\128\128\128\128\128\128\128\128\128\128\128\128\128\128",
- "\128\128\128\128\128\128\159\143\144\128\128\128\128\128\128",
- "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
- "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
- "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
- "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
- "\128\128\128\130\144\128\128\128\128\128\159\129\128\128\128",
- "\128\128\128\128\128\139\128\128\128\135\128\128\128\128\128",
- "\128\128\128\128\128\128\130\143\129\128\128\128\128\128\128",
- "\128\128\128\128\128\128\128\128\128\128\128\128\128\128\128",
- },
- {
- "fffffffffffffff",
- "ffffffff0ffffff",
- "fffffff00ffffff",
- "fffffff00ffffff",
- "fffffff00ffffff",
- "fffffff00ffffff",
- "fff0f0000000fff",
- "fffff00000fffff",
- "ffffff000ffffff",
- "fffffffffffffff",
- },
- {
- "fffffffffffffff",
- "ffffff00fffffff",
- "ffffff00fffffff",
- "ffffff00fffffff",
- "ffffff00fffffff",
- "ffffff00fffffff",
- "ffff000000fffff",
- "ffffff000ffffff",
- "fffffffffffffff",
- "fffffffffffffff",
- },
- height = 10,
- delay = 0.1,
- width = 15,
- }
- local gfx = brand("7")
- mon1.setBackgroundColor(colors.gray)
- mon1.setTextScale(1)
- mon1.clear()
- blittle.draw(gfx,4,2,mon1)
- -- res: 15x10
- --mon2.setTextColor(colors.black)
- mon2.setBackgroundColor(colors.black)
- mon2.setTextScale(.5)
- mon2.clear()
- blittle.draw(arrow,1,1,mon2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement