View difference between Paste ID: pJHXKi87 and EZM3c7GW
SHOW: | | - or go back to the newest paste.
1
-- 0 - air
2
-- 1 - black
3
-- 2 - red
4
-- 3 - grey
5
-- 4 - white
6
7
--
8-
art = { 
8+
9-
     {0,0,0,0,1,1,1,1,0,0,0,0},
9+
10-
     {0,0,1,1,2,2,2,2,1,1,0,0},
10+
11-
     {0,1,2,2,4,2,2,2,2,2,1,0},
11+
12-
     {0,1,2,4,4,4,2,2,2,2,1,0},
12+
13-
     {1,2,2,2,4,2,2,2,2,2,2,1},
13+
14-
     {1,2,2,2,2,1,1,2,2,2,2,1},
14+
15-
     {1,1,2,2,1,4,3,1,2,2,1,1},
15+
16-
     {1,4,1,1,1,3,3,1,1,1,3,1},
16+
17-
     {0,1,4,4,4,1,1,3,3,3,1,0},
17+
18-
     {0,1,3,4,4,4,3,3,3,3,1,0},
18+
19-
     {0,0,1,1,3,3,3,3,1,1,0,0},
19+
20-
     {0,0,0,0,1,1,1,1,0,0,0,0},
20+
21
    end 
22
end
23
24
function buildImage(image)
25
    for stroka = 1,#image do
26
        buildLine(image[stroka])
27
        turtle.turnRight() 
28
        turtle.forward()
29
        turtle.turnLeft() 
30
    end
31
    turtle.turnLeft()
32
    for stroka = 1,#image do
33
        turtle.forward()
34
       end
35
    turtle.turnRight()
36
    turtle.up()
37
end
38
art = {
39
     (0,0,0,0,1,1,1,1,0,0,0,0),
40
     (0,0,1,1,2,2,2,2,1,1,0,0),
41
     (0,1,2,2,4,2,2,2,2,2,1,0),
42
     (0,1,2,4,4,4,2,2,2,2,1,0),
43
     (1,2,2,2,4,2,2,2,2,2,2,1),
44
     (1,2,2,2,2,1,1,2,2,2,2,1),
45
     (1,1,2,2,1,4,3,1,2,2,1,1),
46
     (1,4,1,1,1,3,3,1,1,1,3,1),
47
     (0,1,4,4,4,1,1,3,3,3,1,0),
48
     (0,1,3,4,4,4,3,3,3,3,1,0),
49
     (0,0,1,1,3,3,3,3,1,1,0,0),
50
     (0,0,0,0,1,1,1,1,0,0,0,0),
51
}
52
53