Advertisement
ThatGravyBoat

Untitled

May 7th, 2021
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. local monitor = peripheral.find("monitor")
  2. local surface = dofile("surface")
  3. monitor.setTextScale(0.5)
  4. local w,h = monitor.getSize()
  5. local screen = surface.create(w,h)
  6. local display
  7. local index = 0
  8.  
  9. monitor.setPaletteColor(colors.black, 0x090000)
  10. monitor.setPaletteColor(colors.red, 0x2a0100)
  11. monitor.setPaletteColor(colors.green, 0x5f0300)
  12. monitor.setPaletteColor(colors.brown, 0x940c00)
  13. monitor.setPaletteColor(colors.blue, 0x9f5a17)
  14. monitor.setPaletteColor(colors.purple, 0xed972d)
  15. monitor.setPaletteColor(colors.cyan, 0xe46112)
  16. monitor.setPaletteColor(colors.lightGray, 0xf2b645)
  17. monitor.setPaletteColor(colors.gray, 0xf4da51)
  18. monitor.setPaletteColor(colors.pink, 0xc73700)
  19. monitor.setPaletteColor(colors.lime, 0xf1c93e)
  20. monitor.setPaletteColor(colors.yellow, 0xaf8630)
  21. monitor.setPaletteColor(colors.lightBlue, 0x6a4812)
  22. monitor.setPaletteColor(colors.magenta, 0x3e2e0d)
  23. monitor.setPaletteColor(colors.orange, 0xffff8b)
  24. monitor.setPaletteColor(colors.white, 0xac9f40)
  25.  
  26. while true do
  27.     display = surface.load("frame-" .. index .. ".nfp")
  28.     index = index + 1
  29.     screen:drawSurface(display,0,0)
  30.     screen:output(monitor)
  31.     sleep(0.5)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement