SHOW:
|
|
- or go back to the newest paste.
1 | ligne="" | |
2 | colone="" | |
3 | tail="" | |
4 | ma="" | |
5 | print("Orientation ecran") | |
6 | print("1=haut, 2=bas , 3=gauche , 4=droite ,5=deriere") | |
7 | mon = read() | |
8 | if (mon=="1") then | |
9 | ma="top" | |
10 | end | |
11 | ||
12 | if (mon=="2") then | |
13 | ma="bottom" | |
14 | end | |
15 | ||
16 | if (mon=="3") then | |
17 | ma="left" | |
18 | end | |
19 | ||
20 | if (mon=="4") then | |
21 | ma="right" | |
22 | end | |
23 | ||
24 | if (mon=="5") then | |
25 | ma="back" | |
26 | end | |
27 | mp = peripheral.wrap(ma) | |
28 | print("Quel Taile de police") | |
29 | tail = read() | |
30 | tail=tail+0 | |
31 | ||
32 | mp.setTextScale(tail) | |
33 | print("Commence sur quel ligne ? ") | |
34 | ligne=read() | |
35 | ligne=ligne+0 | |
36 | print("Commence sur quel colone ?") | |
37 | colone=read() | |
38 | colone=colone+0 | |
39 | mp.setCursorPos(ligne,colone) | |
40 | print("De quel couleur ? ") | |
41 | ||
42 | print("Palette de couleur") | |
43 | term.setTextColor(colors.white) | |
44 | print("1 = blanc") | |
45 | term.setTextColor(colors.red) | |
46 | print("2 = rouge") | |
47 | term.setTextColor(colors.blue) | |
48 | print("3 = bleu") | |
49 | term.setTextColor(colors.green) | |
50 | print("4 = vert") | |
51 | term.setTextColor(colors.brown) | |
52 | print("5 = marron") | |
53 | term.setTextColor(colors.lime) | |
54 | print("6 = vert clair") | |
55 | term.setTextColor(colors.magenta) | |
56 | print("7 = magenta") | |
57 | term.setTextColor(colors.orange) | |
58 | print("8 = orange") | |
59 | term.setTextColor(colors.pink) | |
60 | print("9 = rose") | |
61 | term.setTextColor(colors.yellow) | |
62 | print("10 = jaune") | |
63 | term.setTextColor(colors.white) | |
64 | local couleur= read() | |
65 | if (couleur=="1") then | |
66 | - | if (couleur=="rouge") then |
66 | + | mp.setTextColor(colors.white) |
67 | end | |
68 | if (couleur=="2") then | |
69 | mp.setTextColor(colors.red) | |
70 | end | |
71 | if (couleur=="3") then | |
72 | mp.setTextColor(colors.blue) | |
73 | end | |
74 | if (couleur=="4") then | |
75 | mp.setTextColor(colors.green) | |
76 | end | |
77 | if (couleur=="5") then | |
78 | mp.setTextColor(colors.brown) | |
79 | end | |
80 | if (couleur=="6") then | |
81 | mp.setTextColor(colors.lime) | |
82 | end | |
83 | if (couleur=="7") then | |
84 | mp.setTextColor(colors.magenta) | |
85 | end | |
86 | if (couleur=="8") then | |
87 | mp.setTextColor(colors.orange) | |
88 | end | |
89 | if (couleur=="9") then | |
90 | mp.setTextColor(colors.pink) | |
91 | end | |
92 | if (couleur=="10") then | |
93 | mp.setTextColor(colors.yellow) | |
94 | end | |
95 | print("yolo") | |
96 | end | |
97 | mp.setTextColor(couleur) | |
98 | mp.write("Test 3") |