euh, same as previous commit, stupid vs code smh my head

This commit is contained in:
aiden@zuchtbude.de
2022-05-08 16:41:56 +02:00
parent f00005009f
commit 58af53bc83
3 changed files with 41 additions and 4 deletions
+16
View File
@@ -0,0 +1,16 @@
component = require("component")
event = require("event")
colors = require("colors")
gpu = component.gpu
while true do
local _,_,x,y = event.pull("touch")
if(x <= 50 and x >= 40 and y <= 20 and y >= 10) then
gpu.setBackground(0x00ff00)
gpu.fill(x,y,1,1," ")
else
gpu.setBackground(0x0000ff)
gpu.fill(x,y,1,1," ")
end
end