Debian Codegraph @

texmf-dist/source/latex/wargame/hex/terrain/village.dtx

raw
1 % \iffalse
2 % --------------------------------------------------------------------
3 %<*hex>
4 % \fi
5 % \begin{TikzKey}{hex/terrain/town/road,
6 % hex/terrain/town/small road,
7 % hex/terrain/town/house}
8 % For villages, towns, and cities, we need three styles: one for
9 % houses, and separate styles for regular and small roads. Note
10 % that we draw using the stroke colour for roads and houses.
11 %
12 % \begin{center}
13 % \includegraphics{wargame.village}
14 % \end{center}
15 %
16 % \begin{macrocode}
17 \ifhex@terrain@pic
18 \tikzset{
19 hex/terrain/town/road/.style={
20 fill=none,
21 draw=gray!50!black,
22 scale line widths,
23 line width=.3mm
24 },
25 hex/terrain/town/small road/.style={
26 fill=none,
27 draw=gray!75!black,
28 scale line widths,
29 line width=.15mm
30 },
31 hex/terrain/town/post road/.style={
32 fill=none
33 },
34 hex/terrain/town/house/.style={
35 draw=none,
36 fill=gray!75!black,
37 }
38 }
39 % \end{macrocode}
40 % \end{TikzKey}
41 %
42 %
43 % \begin{TikzKey}{hex/terrain/village}
44 % Now for village, town, and city patterns.
45 %
46 %
47 % \begin{macrocode}
48 \tikzset{
49 hex/terrain/village/.pic={
50 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
51 ( 0.0073, 0.8700)
52 -- ( 0.3952, 0.3373)
53 -- ( 0.3884, 0.2029)
54 -- ( 0.3555, 0.1378)
55 -- ( 0.3751, 0.0880)
56 -- ( 0.2513,-0.1997)
57 -- ( 0.1396,-0.4505)
58 -- ( 0.0641,-0.6512)
59 -- ( 0.0070,-0.8700)
60 -- ( 0.0070,-0.8700)
61 ;
62 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
63 ( 0.7575, 0.4367)
64 -- ( 0.3945, 0.3375)
65 -- ( 0.3945, 0.3375)
66 ;
67 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
68 (-0.1900,-0.0806)
69 -- (-0.1155, 0.1588)
70 ;
71 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
72 (-0.1308, 0.1580)
73 -- (-0.7603, 0.4394)
74 ;
75 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
76 (-0.6615,-0.2309)
77 -- (-0.6777,-0.3255)
78 -- (-0.7607,-0.4327)
79 ;
80 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
81 (-0.6676,-0.2405)
82 -- (-0.4599,-0.1067)
83 -- (-0.1877,-0.0679)
84 ;
85 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
86 ( 0.2082,-0.3003)
87 -- ( 0.4578,-0.4855)
88 -- ( 0.5914,-0.3675)
89 -- ( 0.7607,-0.4420)
90 ;
91 \path[hex/terrain/town/road,pic actions,hex/terrain/town/post road]
92 ( 0.3827, 0.1864)
93 -- (-0.1290, 0.1576)
94 ;
95 \path[hex/terrain/town/house,pic actions]
96 ( 0.2259, 0.4898)
97 -- ( 0.2453, 0.4680)
98 -- ( 0.2052, 0.4324)
99 -- ( 0.1858, 0.4542)
100 --cycle
101 ;
102 \path[hex/terrain/town/house,pic actions]
103 ( 0.2259, 0.4898)
104 -- ( 0.2453, 0.4680)
105 -- ( 0.2052, 0.4324)
106 -- ( 0.1858, 0.4542)
107 --cycle
108 ;
109 \path[hex/terrain/town/house,pic actions]
110 (-0.1978, 0.1663)
111 -- (-0.1534, 0.1549)
112 -- (-0.1685, 0.0960)
113 -- (-0.2130, 0.1074)
114 --cycle
115 ;
116 \path[hex/terrain/town/house,pic actions]
117 (-0.1978, 0.1663)
118 -- (-0.1534, 0.1549)
119 -- (-0.1685, 0.0960)
120 -- (-0.2130, 0.1074)
121 --cycle
122 ;
123 \path[hex/terrain/town/house,pic actions]
124 ( 0.5127,-0.3559)
125 -- ( 0.5341,-0.3759)
126 -- ( 0.4975,-0.4151)
127 -- ( 0.4761,-0.3951)
128 --cycle
129 ;
130 \path[hex/terrain/town/house,pic actions]
131 ( 0.5127,-0.3559)
132 -- ( 0.5341,-0.3759)
133 -- ( 0.4975,-0.4151)
134 -- ( 0.4761,-0.3951)
135 --cycle
136 ;
137 \path[hex/terrain/town/house,pic actions]
138 ( 0.2761, 0.3992)
139 -- ( 0.2947, 0.3765)
140 -- ( 0.2533, 0.3425)
141 -- ( 0.2347, 0.3651)
142 --cycle
143 ;
144 \path[hex/terrain/town/house,pic actions]
145 ( 0.2761, 0.3992)
146 -- ( 0.2947, 0.3765)
147 -- ( 0.2533, 0.3425)
148 -- ( 0.2347, 0.3651)
149 --cycle
150 ;
151 \path[hex/terrain/town/house,pic actions]
152 ( 0.3227, 0.3548)
153 -- ( 0.3421, 0.3329)
154 -- ( 0.3020, 0.2974)
155 -- ( 0.2826, 0.3192)
156 --cycle
157 ;
158 \path[hex/terrain/town/house,pic actions]
159 ( 0.3227, 0.3548)
160 -- ( 0.3421, 0.3329)
161 -- ( 0.3020, 0.2974)
162 -- ( 0.2826, 0.3192)
163 --cycle
164 ;
165 \path[hex/terrain/town/house,pic actions]
166 ( 0.2901, 0.6234)
167 -- ( 0.3088, 0.6008)
168 -- ( 0.2674, 0.5667)
169 -- ( 0.2487, 0.5893)
170 --cycle
171 ;
172 \path[hex/terrain/town/house,pic actions]
173 ( 0.2901, 0.6234)
174 -- ( 0.3088, 0.6008)
175 -- ( 0.2674, 0.5667)
176 -- ( 0.2487, 0.5893)
177 --cycle
178 ;
179 \path[hex/terrain/town/house,pic actions]
180 (-0.3456, 0.2854)
181 -- (-0.3335, 0.3120)
182 -- (-0.2847, 0.2898)
183 -- (-0.2968, 0.2632)
184 --cycle
185 ;
186 \path[hex/terrain/town/house,pic actions]
187 (-0.3456, 0.2854)
188 -- (-0.3335, 0.3120)
189 -- (-0.2847, 0.2898)
190 -- (-0.2968, 0.2632)
191 --cycle
192 ;
193 \path[hex/terrain/town/house,pic actions]
194 (-0.6678,-0.1369)
195 -- (-0.6492,-0.1143)
196 -- (-0.6078,-0.1484)
197 -- (-0.6264,-0.1710)
198 --cycle
199 ;
200 \path[hex/terrain/town/house,pic actions]
201 (-0.6678,-0.1369)
202 -- (-0.6492,-0.1143)
203 -- (-0.6078,-0.1484)
204 -- (-0.6264,-0.1710)
205 --cycle
206 ;
207 \path[hex/terrain/town/house,pic actions]
208 ( 0.4610, 0.0967)
209 -- ( 0.4896, 0.0909)
210 -- ( 0.4790, 0.0384)
211 -- ( 0.4503, 0.0442)
212 --cycle
213 ;
214 \path[hex/terrain/town/house,pic actions]
215 ( 0.4610, 0.0967)
216 -- ( 0.4896, 0.0909)
217 -- ( 0.4790, 0.0384)
218 -- ( 0.4503, 0.0442)
219 --cycle
220 ;
221 \path[hex/terrain/town/house,pic actions]
222 ( 0.2924,-0.1375)
223 -- ( 0.3110,-0.0955)
224 -- ( 0.3667,-0.1202)
225 -- ( 0.3481,-0.1621)
226 --cycle
227 ;
228 \path[hex/terrain/town/house,pic actions]
229 ( 0.2924,-0.1375)
230 -- ( 0.3110,-0.0955)
231 -- ( 0.3667,-0.1202)
232 -- ( 0.3481,-0.1621)
233 --cycle
234 ;
235 \path[hex/terrain/town/house,pic actions]
236 ( 0.5094, 0.3292)
237 -- ( 0.5505, 0.3494)
238 -- ( 0.5773, 0.2947)
239 -- ( 0.5362, 0.2746)
240 --cycle
241 ;
242 \path[hex/terrain/town/house,pic actions]
243 ( 0.5094, 0.3292)
244 -- ( 0.5505, 0.3494)
245 -- ( 0.5773, 0.2947)
246 -- ( 0.5362, 0.2746)
247 --cycle
248 ;
249 \path[hex/terrain/town/house,pic actions]
250 (-0.1323, 0.2640)
251 -- (-0.0890, 0.2489)
252 -- (-0.1092, 0.1914)
253 -- (-0.1524, 0.2065)
254 --cycle
255 ;
256 \path[hex/terrain/town/house,pic actions]
257 (-0.1323, 0.2640)
258 -- (-0.0890, 0.2489)
259 -- (-0.1092, 0.1914)
260 -- (-0.1524, 0.2065)
261 --cycle
262 ;
263 \path[hex/terrain/town/house,pic actions]
264 ( 0.4115,-0.5373)
265 -- ( 0.4390,-0.5006)
266 -- ( 0.4877,-0.5372)
267 -- ( 0.4601,-0.5739)
268 --cycle
269 ;
270 \path[hex/terrain/town/house,pic actions]
271 ( 0.4115,-0.5373)
272 -- ( 0.4390,-0.5006)
273 -- ( 0.4877,-0.5372)
274 -- ( 0.4601,-0.5739)
275 --cycle
276 ;
277 \path[hex/terrain/town/house,pic actions]
278 ( 0.3095, 0.1272)
279 -- ( 0.3519, 0.1095)
280 -- ( 0.3284, 0.0533)
281 -- ( 0.2861, 0.0710)
282 --cycle
283 ;
284 \path[hex/terrain/town/house,pic actions]
285 ( 0.3095, 0.1272)
286 -- ( 0.3519, 0.1095)
287 -- ( 0.3284, 0.0533)
288 -- ( 0.2861, 0.0710)
289 --cycle
290 ;
291 \path[hex/terrain/town/house,pic actions]
292 ( 0.2904, 0.2714)
293 -- ( 0.3361, 0.2681)
294 -- ( 0.3318, 0.2074)
295 -- ( 0.2861, 0.2106)
296 --cycle
297 ;
298 \path[hex/terrain/town/house,pic actions]
299 ( 0.2904, 0.2714)
300 -- ( 0.3361, 0.2681)
301 -- ( 0.3318, 0.2074)
302 -- ( 0.2861, 0.2106)
303 --cycle
304 ;
305 \path[hex/terrain/town/house,pic actions]
306 ( 0.4665, 0.4396)
307 -- ( 0.4868, 0.3985)
308 -- ( 0.4321, 0.3716)
309 -- ( 0.4119, 0.4127)
310 --cycle
311 ;
312 \path[hex/terrain/town/house,pic actions]
313 ( 0.4665, 0.4396)
314 -- ( 0.4868, 0.3985)
315 -- ( 0.4321, 0.3716)
316 -- ( 0.4119, 0.4127)
317 --cycle
318 ;
319 \path[hex/terrain/town/house,pic actions]
320 ( 0.4187, 0.2523)
321 -- ( 0.4643, 0.2574)
322 -- ( 0.4711, 0.1969)
323 -- ( 0.4256, 0.1917)
324 --cycle
325 ;
326 \path[hex/terrain/town/house,pic actions]
327 ( 0.4187, 0.2523)
328 -- ( 0.4643, 0.2574)
329 -- ( 0.4711, 0.1969)
330 -- ( 0.4256, 0.1917)
331 --cycle
332 ;
333 \path[hex/terrain/town/house,pic actions]
334 ( 0.3746, 0.1600)
335 -- ( 0.4021, 0.1699)
336 -- ( 0.4204, 0.1195)
337 -- ( 0.3929, 0.1095)
338 --cycle
339 ;
340 \path[hex/terrain/town/house,pic actions]
341 ( 0.3746, 0.1600)
342 -- ( 0.4021, 0.1699)
343 -- ( 0.4204, 0.1195)
344 -- ( 0.3929, 0.1095)
345 --cycle
346 ;
347 }
348 }
349 \fi
350 % \end{macrocode}
351 % \end{TikzKey}
352 %
353 % \iffalse
354 %</hex>
355 % --------------------------------------------------------------------
356 % \fi