Guest User

tm

a guest
Nov 6th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local t = {}
  2. function addImage(name, i)
  3.   t[name] = {}
  4.   t[name] = i
  5. end
  6. function removeImage(name)
  7.   t[name] = nil
  8. end
  9. function drawImage(n, x, y, gh)
  10.   local c, d = gh.getSize()
  11.   for a,b in pairs(t[n]) do
  12.     for b,c in pairs(t[n][a]) do
  13.       gh.setColorRGB(t[n][a][b]["r"], t[n][a][b]["g"], t[n][a][b]["b"], a+x, b+y)
  14.     end
  15.   end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment