Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function saveWin(x, y, w, h)
- local winCol = {}
- local winRow = {}
- for a = 1, h do
- for b = 1, w do
- winCol[b] = gpu.get((x + b) - 1, (y + a) - 1)
- end
- winRow[a] = table.concat(winCol)
- end
- return winRow
- end
- local function restoreWin(x, y, wind)
- for a = 1, #wind do
- gpu.set(x, (y + a) - 1, wind[a])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement