Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = {}
- function addImage(name, i)
- t[name] = {}
- t[name] = i
- end
- function removeImage(name)
- t[name] = nil
- end
- function drawImage(n, x, y, gh)
- local c, d = gh.getSize()
- for a,b in pairs(t[n]) do
- for b,c in pairs(t[n][a]) do
- gh.setColorRGB(t[n][a][b]["r"], t[n][a][b]["g"], t[n][a][b]["b"], a+x, b+y)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment