Advertisement
Guest User

startup

a guest
Aug 3rd, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.36 KB | None | 0 0
  1.  
  2. ligne=""
  3. colone=""
  4. tail=""
  5. ma=""
  6. print("Orientation ecran")
  7. print("1=haut, 2=bas , 3=gauche , 4=droite ,5=deriere")
  8. mon = read()
  9.   if (mon=="1") then
  10.   ma="top"
  11.   end
  12.  
  13.   if (mon=="2") then
  14.   ma="bottom"
  15.   end
  16.  
  17.   if (mon=="3") then
  18.   ma="left"
  19.   end
  20.  
  21.   if (mon=="4") then
  22.   ma="right"
  23.   end
  24.  
  25.   if (mon=="5") then
  26.   ma="back"
  27.   end
  28. mp = peripheral.wrap(ma)
  29. print("Quel Taile de police")
  30. tail = read()
  31. tail=tail+0
  32.  
  33. mp.setTextScale(tail)
  34. print("Commence sur quel ligne ? ")
  35. ligne=read()
  36. ligne=ligne+0
  37. print("Commence sur quel colone ?")
  38. colone=read()
  39. colone=colone+0
  40. mp.setCursorPos(ligne,colone)
  41. print("De quel couleur ? ")
  42.  
  43. print("Palette de couleur")
  44. term.setTextColor(colors.white)
  45. print("1 = blanc")
  46. term.setTextColor(colors.red)
  47. print("2 = rouge")
  48. term.setTextColor(colors.blue)
  49. print("3 = bleu")
  50. term.setTextColor(colors.green)
  51. print("4 = vert")
  52. term.setTextColor(colors.brown)
  53. print("5 = marron")
  54. term.setTextColor(colors.lime)
  55. print("6 = vert clair")
  56. term.setTextColor(colors.magenta)
  57. print("7 = magenta")
  58. term.setTextColor(colors.orange)
  59. print("8 = orange")
  60. term.setTextColor(colors.pink)
  61. print("9 = rose")
  62. term.setTextColor(colors.yellow)
  63. print("10 = jaune")
  64. term.setTextColor(colors.white)
  65. local couleur= read()
  66. if (couleur=="rouge") then
  67. print("yolo")
  68. end
  69. mp.setTextColor(couleur)
  70. mp.write("Test 3")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement