Advertisement
skypop

PocketScan.brand

Oct 30th, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.55 KB | None | 0 0
  1. os.loadAPI("blittle")
  2. local mon1 = peripheral.wrap("back")
  3. local mon2 = peripheral.wrap("monitor_4")
  4.  
  5. local brand = function(bg) bg = bg or "0" --name
  6. return { height = 4, width = 32,
  7.     {
  8.     "\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",
  9.     "\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",
  10.     "\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",
  11.     "\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",
  12.     }, {
  13.     "f00fffffff0ffffff0f000fffffffff0",
  14.     "ff0f0ff0ff00f00fffff0f0ff00f0f00",
  15.     "ff44ffffffffffff4ffffffffffffff4",
  16.     "ffffffffffffffffffffffffffffffff",
  17.     }, {
  18.     "0ff0000000f000000f0fff000000000f",
  19.     "0ff0f0ff00ff0fff0f00f0f00ffff0ff",
  20.     "4444444444444444444444444444444f",
  21.     string.rep(bg:sub(1,1),32),
  22.     },
  23. }
  24. end
  25.  
  26. local arrow = {
  27.   {
  28.     "\128\128\128\128\128\128\128\128\128\128\128\128\128\128\128",
  29.     "\128\128\128\128\128\128\159\143\144\128\128\128\128\128\128",
  30.     "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
  31.     "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
  32.     "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
  33.     "\128\128\128\128\128\128\149\128\149\128\128\128\128\128\128",
  34.     "\128\128\128\130\144\128\128\128\128\128\159\129\128\128\128",
  35.     "\128\128\128\128\128\139\128\128\128\135\128\128\128\128\128",
  36.     "\128\128\128\128\128\128\130\143\129\128\128\128\128\128\128",
  37.     "\128\128\128\128\128\128\128\128\128\128\128\128\128\128\128",
  38.   },
  39.   {
  40.     "fffffffffffffff",
  41.     "ffffffff0ffffff",
  42.     "fffffff00ffffff",
  43.     "fffffff00ffffff",
  44.     "fffffff00ffffff",
  45.     "fffffff00ffffff",
  46.     "fff0f0000000fff",
  47.     "fffff00000fffff",
  48.     "ffffff000ffffff",
  49.     "fffffffffffffff",
  50.   },
  51.   {
  52.     "fffffffffffffff",
  53.     "ffffff00fffffff",
  54.     "ffffff00fffffff",
  55.     "ffffff00fffffff",
  56.     "ffffff00fffffff",
  57.     "ffffff00fffffff",
  58.     "ffff000000fffff",
  59.     "ffffff000ffffff",
  60.     "fffffffffffffff",
  61.     "fffffffffffffff",
  62.   },
  63.   height = 10,
  64.   delay = 0.1,
  65.   width = 15,
  66. }
  67.  
  68. local gfx = brand("7")
  69. mon1.setBackgroundColor(colors.gray)
  70. mon1.setTextScale(1)
  71. mon1.clear()
  72. blittle.draw(gfx,4,2,mon1)
  73.  
  74.  
  75. -- res: 15x10
  76. --mon2.setTextColor(colors.black)
  77. mon2.setBackgroundColor(colors.black)
  78. mon2.setTextScale(.5)
  79. mon2.clear()
  80. blittle.draw(arrow,1,1,mon2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement