SHOW:
|
|
- or go back to the newest paste.
1 | -- 1 - blue | |
2 | -- 2 - white | |
3 | ||
4 | -- ARRAY | |
5 | image = { | |
6 | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, | |
7 | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, | |
8 | - | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, |
8 | + | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, |
9 | - | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, |
9 | + | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, |
10 | - | {1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1}, |
10 | + | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, |
11 | - | {1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1}, |
11 | + | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, |
12 | - | {1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 1}, |
12 | + | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} |
13 | - | {1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 1}, |
13 | + | |
14 | - | {1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1}, |
14 | + | |
15 | - | {1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1}, |
15 | + | function buildLine(line) |
16 | - | {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} |
16 | + | |
17 | slot=line[i] | |
18 | - | function buildline(line) |
18 | + | |
19 | turtle.placeDown() | |
20 | - | slot=line[i] |
20 | + | |
21 | end | |
22 | for W = 1,#line do | |
23 | turtle.back() | |
24 | end | |
25 | turtle.turnRight() | |
26 | turtle.forward() | |
27 | turtle.turnLeft() | |
28 | end | |
29 | ||
30 | for i = 1, #image do | |
31 | buildLine(image[i]) | |
32 | end | |
33 | - | for i=1, #image do |
33 | + | |
34 | - | buildline(image[i]) |
34 | + |