Guest User

Untitled

a guest
Oct 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 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
  32.  
  33.  
  34.  
  35.  
  36.  
  37. Marche :
  38. --------
  39. toto = getmetatable(platform.gc())
  40.  
  41. function toto:test()
  42. self:setColorRGB(0,0,0)
  43. self:fillRect(10,10,10,10)
  44. end
  45.  
  46.  
  47. function on.paint(toto)
  48. toto:test()
  49. end
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Marche :
  56. --------
  57. toto = getmetatable(platform.gc())
  58.  
  59. function toto:test()
  60. self:setColorRGB(0,0,0)
  61. self:fillRect(10,10,10,10)
  62. end
  63.  
  64. function on.paint(gc)
  65. gc:test()
  66. end
Add Comment
Please, Sign In to add comment