You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
608 B
Plaintext

local args = {...}
gpuleft = peripheral.wrap("left")
gpuright = peripheral.wrap("right")
while true do
local event,imagedata = os.pullEvent()
if event == "tablet_image" then
local textureIDright = gpuright.import(imagedata)
local textureIDleft = gpuleft.import(imagedata)
gpuright.setColor(255,255,255)
gpuleft.setColor(255,255,255)
gpuright.fill()
gpuleft.fill()
gpuright.drawTexture(textureIDright,0,0)
gpuleft.drawTexture(textureIDleft,0,0)
print("Drew tabletimage from textureID:"..textureIDleft)
gpuright.freeTexture(textureIDright)
gpuleft.freeTexture(textureIDleft)
end
end