StreamerYT

Untitled

Sep 11th, 2020 (edited)
1,048
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local computer = require("computer")
  2. local component = require("component")
  3. local gpu = component.gpu
  4.  
  5. local color0=0xffffff
  6. local color1=0x000000
  7.  
  8. while true do
  9. local event, uuid, x, y, mouse = computer.pullSignal()
  10.     if event=="touch" or event=="drag" then
  11.         gpu.bind(uuid)
  12.         if mouse == 0 then
  13.             gpu.setBackground(color0)
  14.         elseif mouse == 1 then
  15.             gpu.setBackground(color1)
  16.         end
  17.         gpu.set(x,y," ")
  18.     end
  19. end
RAW Paste Data