Theo123456

Ay-Logo

Jul 15th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. --Plus d'infos : https://www.youtube.com/watch?v=2R0FLrJOyDw
  2.  
  3. p = peripheral.wrap("top")
  4. i1 = paintutils.loadImage("ayrobot1")
  5. i2 = paintutils.loadImage("ayrobot2")
  6. i3 = paintutils.loadImage("ayrobot3")
  7. i4 = paintutils.loadImage("ayrobot4")
  8. i5 = paintutils.loadImage("ayrobot5")
  9. i6 = paintutils.loadImage("ayrobot6")
  10.  
  11. p.setTextScale(2)
  12. term.redirect(p)
  13.  
  14.  
  15. function anim1()
  16. p.setBackgroundColor(colors.black)
  17. p.clear()
  18. paintutils.drawImage(i1,-1,3)
  19. sleep(0.2)
  20. p.setBackgroundColor(colors.black)
  21. p.clear()
  22. paintutils.drawImage(i2,-1,3)
  23. sleep(0.2)
  24. p.setBackgroundColor(colors.black)
  25. p.clear()
  26. paintutils.drawImage(i3,-1,3)
  27. sleep(0.2)
  28. end
  29.  
  30. function anim2()
  31. p.setBackgroundColor(colors.black)
  32. p.clear()
  33. paintutils.drawImage(i4,-1,3)
  34. sleep(0.2)
  35. p.setBackgroundColor(colors.black)
  36. p.clear()
  37. paintutils.drawImage(i5,-1,3)
  38. sleep(0.2)
  39. p.setBackgroundColor(colors.black)
  40. p.clear()
  41. paintutils.drawImage(i6,-1,3)
  42. sleep(0.2)
  43. end
  44.  
  45.  
  46. while true do
  47. anim1()
  48. anim2()
  49. end
Add Comment
Please, Sign In to add comment