UNPKG

663 BMarkdownView Raw
1# Automatic Width/Height Tile Test
2
3## Input:
4
5* [ASCII mapping file](auto.txt)
6* [ASCII art](grid.asc)
7
8```
9+-+-+-?
10|X| |?|
11+-+-+-+
12| |X| ?
13+-X-+-+
14| | |X|
15+-+-+X+
16```
17
18## Output:
19
20[SVG](grid.svg)
21
22![maze](grid.svg)
23
24## Symbol behavior:
25
26* `+`, `-`, and `|` symbols (the rectangles) have specified dimensions
27 (to form a grid)
28* `X` sets its width and height according to its column and row,
29 but preserves its aspect ratio (because `preserveAspectRatio="xMidYMid"`
30 is the SVG default).
31* `?` (the built-in undefined symbol) sets its width and height according
32 to its column and row, and allows for nonuniform scaling
33 (via `preserveAspectRatio="none"`).