Muzze77

Manarola_Screen_Home

Jun 5th, 2025 (edited)
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.55 KB | None | 0 0
  1. dbcol = colors.white
  2. dtcol = colors.black
  3. mon = peripheral.wrap("top")
  4. delay = 0.1
  5. function cbut(cx,cy,text,bcol,tcol)
  6.     if bcol == nil then
  7.         bcol = dbcol
  8.     end
  9.     if tcol == nil then
  10.         tcol = dtcol
  11.     end
  12.     mon.setCursorPos(cx,cy)
  13.     mon.setBackgroundColor(bcol)
  14.     mon.setTextColor(tcol)
  15.     mon.write(text)
  16.     mon.setBackgroundColor(dbcol)
  17.     mon.setTextColor(dtcol)
  18. end
  19. gx,gy = mon.getSize()
  20. mon.setBackgroundColor(dbcol)
  21. mon.setTextColor(dtcol)
  22. mon.clear()
  23. function create_blink()
  24. for a = gy+4,-4,-1 do
  25.     mod = a % 2
  26.     if  mod == 0 then
  27.     cbut(2,a," ",colors.lightBlue)
  28.     cbut(gx-2,a," ",colors.lightBlue)
  29.     cbut(10,a,"MUZZE  HOME",colors.lightBlue)
  30.     cbut(14,a+2,"^",colors.lightBlue)
  31.     cbut(12,a+3,"/ | \\",colors.lightBlue)
  32.     cbut(10,a+4,"/   |   \\",colors.lightBlue)
  33.     cbut(10,a+5,"    |     ",colors.lightBlue)
  34.     cbut(10,a+6,"    |     ",colors.lightBlue)
  35.     cbut(2,a+4," ",colors.lightBlue)
  36.     cbut(gx-2,a+4," ",colors.lightBlue)
  37.     sleep(delay)
  38.     cbut(2,a," ")
  39.     cbut(gx-2,a," ")
  40.     cbut(4,a,string.rep(" ",20))
  41.     cbut(4,a+2,string.rep(" ",20))
  42.     cbut(4,a+3,string.rep(" ",20))
  43.     cbut(4,a+4,string.rep(" ",20))
  44.     cbut(4,a+5,string.rep(" ",20))
  45.     cbut(4,a+6,string.rep(" ",20))
  46.     cbut(2,a+4," ")
  47.     cbut(gx-2,a+4," ")
  48.     else
  49.     cbut(2,a," ")
  50.     cbut(gx-2,a," ")
  51.     cbut(2,a+4," ")
  52.     cbut(gx-2,a+4," ")
  53.     sleep(delay)
  54.     cbut(2,a," ",colors.lightBlue)
  55.     cbut(gx-2,a," ",colors.lightBlue)
  56.     cbut(2,a+4," ",colors.lightBlue)
  57.     cbut(gx-2,a+4," ",colors.lightBlue)
  58.     end
  59.  
  60. end
  61. end
  62. while true do
  63. create_blink()
  64. sleep(1)
  65. end
  66.  
Advertisement
Add Comment
Please, Sign In to add comment