xeritt

Change Resolution

Aug 18th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. -- загружаем библиотеки и получаем прокси видеокарты
  2. local component = require("component")
  3. local event = require("event")
  4. local gpu = component.gpu
  5. WIDTH = 150
  6. HEIGHT = 35
  7. -- устанавливаем разрешение
  8. gpu.setResolution(WIDTH, HEIGHT)
  9. print("Разрешение изменено на "..WIDTH.." x "..HEIGHT)
  10. -- gpu.setBackground(0x000000)
  11. -- gpu.fill(1, 1, WIDTH*2, HEIGHT, " ")
  12. -- gpu.setResolution(gpu.maxResolution())
Add Comment
Please, Sign In to add comment