The gpu.copy() is a little bit bugged i would say or i use it wrong
local c = require("component")local gpu2 = c.proxy(c.get("009"))
gpu2.setBackground(0xCC0000)-- setting background to redlocal x,y = gpu2.getResolution()
gpu2.fill(1,1,x,y," ")-- fill the whole screen red
gpu2.setBackground(0x000000)-- setting background to black
gpu2.fill(1,1,x,y/2," ")-- fill the top half screen black
os.sleep(2)
gpu2.copy(1,y/2,x,y/2,1,1)-- copy the red half bottom to the half top
print(y/2)-- just to check if i calculate something wrong
os.sleep(2)
And it doesn't work at all as you can see in the picture...
I maybe need some examples and tutorials for this.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
The gpu.copy() is a little bit bugged i would say or i use it wrong
And it doesn't work at all as you can see in the picture...
I maybe need some examples and tutorials for this.
Link to post
Share on other sites