Advertisement
jig487

asdf

Nov 16th, 2021 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. local sleeper = 0.15
  2.  
  3. local function say(x)
  4. for i = 1, 10 do
  5. print(x)
  6. sleep(sleeper)
  7. end
  8. end
  9.  
  10. local function you(x)
  11. for i = 1, 10 do
  12. term.write(x)
  13. sleep(sleeper)
  14. end
  15. end
  16.  
  17. local cL = {
  18. colors.white,
  19. colors.orange,
  20. colors.magenta,
  21. colors.lightBlue,
  22. colors.yellow,
  23. colors.lime,
  24. colors.pink,
  25. colors.cyan,
  26. colors.purple,
  27. colors.blue,
  28. colors.brown,
  29. colors.green,
  30. colors.red,
  31. colors.black,
  32. }
  33.  
  34. local function love(j,c)
  35. local x,y = term.getCursorPos()
  36. for i = 1, 10 do
  37. term.setCursorPos(x,y)
  38. term.setBackgroundColour(c[i])
  39. term.setTextColor(c[10-i])
  40. term.write(j)
  41. sleep(sleeper)
  42. end
  43. end
  44.  
  45. local function me()
  46. for i = 1, 10 do
  47. term.write("Me")
  48. local x,y = term.getCursorPos()
  49. term.setCursorPos(x,y+1)
  50. sleep(sleeper)
  51. end
  52. end
  53.  
  54. term.clear()
  55. term.setCursorPos(1,1)
  56. term.setBackgroundColor(colors.black)
  57. term.setTextColor(colors.white)
  58. say("Say")
  59. you("You")
  60. print()
  61. love("Love",cL)
  62. print()
  63. me()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement