diff --git a/d22/cube.odg b/d22/cube.odg new file mode 100644 index 0000000..dbd1d9e Binary files /dev/null and b/d22/cube.odg differ diff --git a/d22/cube.txt b/d22/cube.txt new file mode 100644 index 0000000..8d043c4 --- /dev/null +++ b/d22/cube.txt @@ -0,0 +1,200 @@ + .........#...........#...................................#................#...............#......... + ..........#.........................#........#..#...........................#....................... + ....#.#.......#..#.................#.................................#..........#.......#........... + #................##..............##...#....#..#...............#........#..#......................... + ........................#...............#....#.#......................#.#.....#...#................. + ....#....#..........###.#.........##..#.......#..##.##.........#..............#..............#....#. + #.......#..............#...............#.................#..........##..............#......#........ + ...#.......#...........................#................#.....#..............#.........#...........# + .#...#.#....................#...........#..#......#......#.....#.......#...............#............ + ............#...............#.#....................#....#......#.........#.......#......#.#......#.. + ....#.................##...........#....###.......................#........................#........ + ........................#................#..............#.......#................................... + #............................#.........................#.....#...................#...##.........##.. + ..........##............#....#.....#.........#.............##........#..#.....#......#...#.......#.# + #....#.......#...##.#.........#..........................................#.#........................ + ...............................#..............................##.....#.......#..#...#..............# + ....#.................#...#.....#.......##..............#...#........#........#...#.......#......... + .........#....###......#......#.......................#..#...........##...#.........#.....#......... + #........#.......................................................#.....#.#.........#....#.#......... + .............#...#.......#.........#......#.#...............#...#....###.................#.......... + .....#.#....................#.........................#.................................#.#......... + ...................#................#...........#.......#................#............#..#.......... + ..............##.........##.......#.............#.........#.#....#......#.#...#..................... + ..#..............................#..........#.............#...................................#..... + ......##.......#...#.........#............#....#.........#..#..............#.....................##. + #...#...............#.........##..#........................#..........#...............#.#.#.......#. + ...#........#...............#..........#.......#.................#..#................#...........#.. + ...#........................#...#...............#..#............#........#..............#....#...#.. + .....#..##......#...............#.#............#...#....................#...........#.....#...#....# + #....#.................##........#...#............#............................................#.... + ...........................#............#.......##..#....#......#.#........#....#...#............... + .......#.............................................#.........#........#....................#...... + ....#..........#...........#................#.#..............................................#...... + #................#...............#........#................#...........................#............ + ...#..#...............#........#.....#.#...........#........#..........##.........#..#..#...#....... + ............#......#.......#........#.............##...#.............................##............. + ....#.........#..............................#................#...........#.......#.....#....##..... + ..#......#...........................#.......................#............#.#.............#......#.. + .............#.##.......#.........................#......#.......#.................................. + .#..........#.#.#...................#.....#....#................#.#.....#...#............#.......#.. + .......#....#..#...#.......#...#...........##........#.#..............#......#......#............... + .#.#...............................#.....###..................#............#....##........#.......#. + ..........#........#...#...........##.............##............#.#............................#.... + ..#....#.#...........#....#................#.#...#.##......##.#........#.....#..................#... + .........#......#.#..........#.......#.....#...............#............#.#.........#........#...... + .......................#.....##...................#.....##..#.........#..............##..#.......... + .........#....#...........................#...#..........#.#......#...#..........................#.# + #.#........................###......#..................#..................#.....#.....#............. + ..............................#......#.#....#.#..#...#..#.....#........#...................#........ + ..#.........#......#...#.....#.................................#.......#.#.......#.#..............#. + #........#.................#............#......... + ..##.#........#...#..#............................ + .#..............#..........................#.....# + .......#..#.......#........#...#..#.......#..#..#. + ......#...#....##.........#.#....#.#......#....#.. + ...#...#....#..........................#.......... + ...........#..#........#..##.......#....#......... + ..#...#......#.......#.##.....#.#................. + .......................#.......##.....#.#......... + .....#................#.............#.#........... + ..#.....#.............................#.#........# + ..#......##......#......................#.......#. + .....#.....................#...................... + .....#.......#.#....##........#................... + ..................#..#.#................#.#....... + #....#...........#.....##.............#.......#... + #....#........#.....#............................. + .#.......#....#.#................#.....#.....#...# + ............#.............#.....#..#.............. + ...................#..........#...#......#........ + ...#.....................#....#...#..#...........# + .#...........#....#............................... + ....#...#.#............#.......................#.. + .#.............................##.#.....#......... + #.#.......#.......................#............... + .....#...##............#......#..............#...# + .............#................#........#........#. + ............#.#.....................#.........#... + ................#..........#....................#. + .........#.........................#....###..#..#. + ..................................#............... + .#...##..#..#............#.......#..##......##.... + ...#...........#...........#............#......... + ..##.........#.......#..........#................. + ...........#.............................#...#.... + .............#.......#.....#...................... + .........#.......................#................ + ..........................#....#.#..............#. + ..........#.....#..................#.........#.... + ....................#.............#............... + ...........#.##.....................#............. + ........................#....#..#...#.........#... + .......#......#................................... + .#..#..#..................#..........#.#.......... + ...............#.................##..........#.#.# + ##.....#..........#..#..................#......#.. + #..........#.....#......#.............##......#... + #......#.........#.................#............#. + ..#...............................#..#.......#...# + .........#...........................#........#... +...............................#.......#...#.......#.............................#..#............... +.............#.#.#..#.......#............#........#.................#............#.......#.......... +...........#...#..#.........#....#..............#.......#...#......#...............................# +..........#.........#........#.....................#.....................#.#............#.....#..#.. +.....#.........#.......................#........##.#.....................................#.......... +#...........#....#..##.....................#...........#..............#...#..#.#.................... +......#..........................##.......#..............#.......................#.................. +#......#.#......#.............#...............#...........##...#..........#........#......#......#.. +..............#.....#..#.............#...#.....#................##.................................. +.....#..............#................#................#.............................#........#...... +.......##...#..........#...............#.............#.........#.#..#..#.....#....#............#.... +.............#............###...........#..................#.......#................................ +...............#.........#........#............................#..............................#..... +...#......#......#......##.#.............................#...#............................##........ +.....#..............#.#............#.......#.##..........##................#......#..#............## +........................#..#......#...........#......#.........#.#...#..####.....#...#.............. +......#.......#......#........#..#....#......##.....#...#..#.....#..............##.......#....#..... +...##.#.........#..#.......#.........#........#...........................#..........#......#....#.. +.................#......#............#......................#..#.....#............#...#.....#.#..... +.........#............##...........#...........#....###.................#........................... +..#......#........#...........#....##..#..............#...#.....#......................#..........#. +..........#................#........#.......#.......#.......##...##...#..........................#.. +.......#.#....#....#..............#.......#....#..#..............##................................. +...........#..#.......#....#.............#...#...........##..#..#............#........##..........#. +#.#....................#....#....#.#.....#..........#....#..........#.........#................#.... +....................#.#.##.........................................###.........#...........#........ +...............#...#..................#..........#...........#...........#.........#..#..#...#...#.# +........#...........###...#...........#..........................##...........#..................#.. +.......#..#.............................#......#............#....................#.............#.... +....#...............#.......#...........##.##.....#..................#...#...#...................... +.#.....#.......#....................................#..#..#.......................#.........#....... +......................#.#.##............#............#............#......#.......#......#..##....... +........................................##......................#..................#.......#........ +...................................#..#....#.......#.#........#.....#......###............#......... +.....#................#..#..............#........#.........##........................#.............. +..............#...........#........#..............#........#..............#......................... +##...................#...#................#.....#......#.#...#...##......#........#....#........#... +#..#....#..............................#...........#..#........#..#.....#......#.................... +#...............#...#.##..............................#......##...............#..................#.. +............#.#..#.#................#...#..#..................#......#.#................#........... +#.....................#..........#.......#.....#...........#.........................##....#........ +#....................#..........#..............#...................#.........#.##.....#..##.......#. +........#...........#....#...#.#...........#.......#......................#.....#.......#.#......... +#.....................#.....#..#..............##.....#...........#.................................. +......................#.................#.............#.......................................#.#... +....#..#........#....#........#...............#......#....#......#..#....#.........##............... +.............#.#...........#...............#.......................#................................ +......................#.#............#.....#..............................#.......#................. +....#...#.............#...................#...........#...................................#......... +.....................#......#...#......#..##...........#...........#.....#...............#.......... +....#.#....#.................#....#............... +..........#...#..........#..#.................#... +...........#............#..#.......#...........#.. +........#..#....##......#.........#............... +#........................##..#.#...............#.. +...#.........##................................... +...#...................#....#........#............ +.#.#...............#.#..#......................... +...#.#..........#..............................#.. +........#.............#..............#...#..#..... +...#.....................#...............#.#.....# +.#......#.#..................#.....#....#.....#.#. +.............#..##..............#.......#....#.... +......#.......#........#...#...........#...#...... +...#..#.................#.#....#.................. +..#..................#......#...............#..... +...............#.............#..............#..... +..#..........#.................................... +.................#.............#.#......#.....#... +............................................#....# +.........#.............#.........#....#........... +##....#................#.............#.#.......... +....#....#............#.................#...#..... +...........#.........#................#.#......... +...#..#........................#....#.........#... +.##..................#....#.........###..##..#.#.. +...#..........#...................#.....#.#.#..... +##.......#......##................#..........#.... +...#....#...#...........#.............#.#........# +.....................#.........#.##..#.##....#.... +...........#......................##.#............ +.........................#.........#.#....#....... +.......................#......#....#....#..#...... +...........................#..............#....... +.................#..............#..........#..#... +.......#...#....#.....#.#.....................#... +.....#....#..#.........#..............#......#.... +..........................#.#.......#.#..........# +.........#.........#......#....................... +........#.......#..........##..................... +..#......#.....##................................. +.##..#...#..............#....#....#.#.#........... +.............#............#......#..........#..#.. +...........#.#.................#..#......#...##... +#......##....#..........#......#....#.........#... +#............................#...........#..#.#... +..........#............#...........#.............. +..............#.........................#.......#. +...#...#.....#..........#...................#..... +#.#.....#.............#...............#.........#. \ No newline at end of file diff --git a/d22/draw.awk b/d22/draw.awk new file mode 100644 index 0000000..7d6809a --- /dev/null +++ b/d22/draw.awk @@ -0,0 +1,36 @@ +BEGIN { + print "P2" + #print "150 200" + print "604 805" + print "2" # max + C = "" + for (i=1;i<=150;i++) { C = C " " } +} +function sep() { + r = "" + for (i=1;i<=604;i++) { + r = r "1 " + } + print r +} +NR == 1 { sep() } +{ + split($0 C,A,"") + r = "1 " + for (i=1;i<=150;i++) { + c = A[i] + if (c==" ") p="2"; #"1"; + if (c==".") p="2"; + if (c=="#") p="0"; + r = r p " " p " " p " " p " " + if (i%50 == 0) { + r = r "1 " + } + } + print r + print r + print r + print r +} +NR % 50 == 0 { sep() } +