Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local vector2 = require("vector2")
- local color3 = require("color3")
- local draw = require("draw")
- local event = require("event")
- local gpu = component.gpu
- local w,h = gpu.getResolution()
- local mh,mw = h/2, w/2
- local center = vector2.new(mw,mh)
- local lastTouch = center
- -- shell
- while true do
- local _,_,x,y = event.pull("touch")
- local touch = vector2.new(x,y)
- draw.line(touch,lastTouch,color3.fromRGB(255,255,255))
- lastTouch = touch
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement