Guest User

Untitled

a guest
Oct 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Marche :
  2. ---------
  3. gc = getmetatable(platform.gc())
  4.  
  5. function gc:test()
  6. self:setColorRGB(0,0,0)
  7. self:fillRect(10,10,10,10)
  8. end
  9.  
  10.  
  11. function on.paint(gc)
  12. gc:test()
  13. end
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Marche pas :
  20. ------------
  21. toto = getmetatable(platform.gc())
  22.  
  23. function toto:test()
  24. self:setColorRGB(0,0,0)
  25. self:fillRect(10,10,10,10)
  26. end
  27.  
  28.  
  29. function on.paint(gc)
  30. toto:test()
  31. end
Add Comment
Please, Sign In to add comment