Debian Codegraph @

texmf-dist/tex/latex/maritime/maritime.sty

raw
1 % =============================================================================
2 % worldflags.sty - International Maritime Signal Flags with TikZ
3 % (c) N. E. Davis 2025-02-15
4 % =============================================================================
5 \ProvidesPackage{maritime}[2025/02/15 v1.0 International Maritime Signal Flags with TikZ]
6 \RequirePackage{tikz}
7 \RequirePackage{xcolor}
8 \RequirePackage{etex}
9 \RequirePackage{xkeyval}
10 \RequirePackage{graphicx}
11 \RequirePackage{xstring}
12 \usetikzlibrary{calc,shadows,shapes,shapes.symbols,positioning,math,decorations.text}
13
14 % ----------------------------------------------------------------------------
15 % Default values
16 % ----------------------------------------------------------------------------
17 \makeatletter
18 \newdimen\fl@gwidth
19 \newdimen\fl@glength
20 \newdimen\cutdepth
21 \newdimen\saltiredepth
22
23 \def\setflagdimensions{%
24 \fl@gwidth=15ex
25 \fl@glength=\fl@gwidth
26 \cutdepth=0.75\fl@gwidth
27 % 1.414 / 10 = 0.1414
28 \saltiredepth=0.1414\fl@gwidth
29 }
30 \def\fl@gvariant{0} % 2022-07-09
31 \def\fl@gstretch{0}
32 \def\fr@mecolor{black!60}
33 \def\gr@dcolor{black!80}
34 \newif\if@mbl@m\@mbl@mtrue
35 \newif\if@rid\@ridfalse
36 \newif\ifn@@mbl@m\n@@mbl@mtrue
37 \def\view@ngle{0}
38 \def\hang@ngle{0}
39
40 % ----------------------------------------------------------------------------
41 % Colors
42 % ----------------------------------------------------------------------------
43 \definecolor{gridcolor}{rgb}{0.8,0.8,0.8}
44
45 \definecolor{argent}{rgb}{1.0,1.0,1.0}
46 \definecolor{or}{rgb}{1.0,1.0,0.0}
47 \definecolor{gules}{rgb}{1.0,0.0,0.0}
48 \definecolor{azure}{rgb}{0.0,0.5,1.0}
49 \definecolor{vert}{rgb}{0.0,0.5,0.0}
50 \definecolor{sable}{rgb}{0.0,0.0,0.0}
51
52 % ----------------------------------------------------------------------------
53 % Base flag
54 % ----------------------------------------------------------------------------
55 % A Alfa, swallowtailed per pale argent and azure
56 \newcommand{\flagAname}{Alfa}
57 \newcommand{\flagAblazon}{swallowtailed per pale argent and azure}
58 \newcommand{\flagA}{%
59 \setflagdimensions
60 \begin{tikzpicture}
61 \fill [argent] (0,0) rectangle (0.5\fl@gwidth,\fl@glength);
62 \fill [azure] (0.5\fl@gwidth,0)
63 -- (\fl@gwidth,0)
64 -- (\cutdepth,0.5\fl@glength)
65 -- (\fl@gwidth,\fl@glength)
66 -- (0.5\fl@gwidth,\fl@glength)
67 -- cycle;
68 \draw [gridcolor] (0,0)
69 -- (\fl@gwidth,0)
70 -- (\cutdepth,0.5\fl@glength)
71 -- (\fl@gwidth,\fl@glength)
72 -- (0,\fl@glength)
73 -- cycle;
74 \end{tikzpicture}%
75 }
76
77 % B Bravo, swallowtailed gules
78 \newcommand{\flagBname}{Bravo}
79 \newcommand{\flagBblazon}{swallowtailed gules}
80 \newcommand{\flagB}{%
81 \setflagdimensions
82 \begin{tikzpicture}
83 \fill [gules] (00,0)
84 -- (\fl@gwidth,0)
85 -- (\cutdepth,0.5\fl@glength)
86 -- (\fl@gwidth,\fl@glength)
87 -- (0,\fl@glength)
88 -- cycle;
89 \draw [gridcolor] (0,0)
90 -- (\fl@gwidth,0)
91 -- (\cutdepth,0.5\fl@glength)
92 -- (\fl@gwidth,\fl@glength)
93 -- (0,\fl@glength)
94 -- cycle;
95 \end{tikzpicture}%
96 }
97
98 % C Charlie, azure a fess gules fimbriated argent
99 \newcommand{\flagCname}{Charlie}
100 \newcommand{\flagCblazon}{azure a fess gules fimbriated argent}
101 \newcommand{\flagC}{%
102 \setflagdimensions
103 \begin{tikzpicture}
104 \fill [azure] (0,0) rectangle (\fl@gwidth,0.2\fl@glength);
105 \fill [argent] (0,0.2\fl@glength) rectangle (\fl@gwidth,0.4\fl@glength);
106 \fill [gules] (0,0.4\fl@glength) rectangle (\fl@gwidth,0.6\fl@glength);
107 \fill [argent] (0,0.6\fl@glength) rectangle (\fl@gwidth,0.8\fl@glength);
108 \fill [azure] (0,0.8\fl@glength) rectangle (\fl@gwidth,\fl@glength);
109 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
110 \end{tikzpicture}%
111 }
112
113 % D Delta, gules a pale argent
114 \newcommand{\flagDname}{Delta}
115 \newcommand{\flagDblazon}{gules a pale argent}
116 \newcommand{\flagD}{%
117 \setflagdimensions
118 \begin{tikzpicture}
119 \fill [or] (0,0) rectangle (\fl@gwidth,0.25\fl@glength);
120 \fill [azure] (0,0.25\fl@glength) rectangle (\fl@gwidth,0.75\fl@glength);
121 \fill [or] (0,0.75\fl@glength) rectangle (\fl@gwidth,\fl@glength);
122 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
123 \end{tikzpicture}%
124 }
125
126 % E Echo, per fess azure and gules
127 \newcommand{\flagEname}{Echo}
128 \newcommand{\flagEblazon}{per fess azure and gules}
129 \newcommand{\flagE}{%
130 \setflagdimensions
131 \begin{tikzpicture}
132 \fill [gules] (0,0) rectangle (\fl@gwidth,0.5\fl@glength);
133 \fill [azure] (0,0.5\fl@glength) rectangle (\fl@gwidth,\fl@glength);
134 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
135 \end{tikzpicture}%
136 }
137
138 % F Foxtrot, argent, a lozenge throughout gules
139 \newcommand{\flagFname}{Foxtrot}
140 \newcommand{\flagFblazon}{argent, a lozenge throughout gules}
141 \newcommand{\flagF}{%
142 \setflagdimensions
143 \begin{tikzpicture}
144 \fill [argent] (0,0) rectangle (\fl@gwidth,\fl@glength);
145 \fill [gules] (0.5\fl@gwidth,0)
146 -- (\fl@gwidth,0.5\fl@glength)
147 -- (0.5\fl@gwidth,\fl@glength)
148 -- (0,0.5\fl@glength)
149 -- cycle;
150 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
151 \end{tikzpicture}%
152 }
153
154 % G Golf, Paly of six or and azure
155 \newcommand{\flagGname}{Golf}
156 \newcommand{\flagGblazon}{Paly of six or and azure}
157 \newcommand{\flagG}{%
158 \setflagdimensions
159 \begin{tikzpicture}
160 \fill [or] (0,0) rectangle (0.1666667\fl@gwidth,\fl@glength);
161 \fill [azure] (0.1666667\fl@gwidth,0) rectangle (0.3333333\fl@gwidth,\fl@glength);
162 \fill [or] (0.3333333\fl@gwidth,0) rectangle (0.5\fl@gwidth,\fl@glength);
163 \fill [azure] (0.5\fl@gwidth,0) rectangle (0.6666667\fl@gwidth,\fl@glength);
164 \fill [or] (0.6666667\fl@gwidth,0) rectangle (0.8333333\fl@gwidth,\fl@glength);
165 \fill [azure] (0.8333333\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
166 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
167 \end{tikzpicture}%
168 }
169
170 % H Hotel, per pale argent and gules
171 \newcommand{\flagHname}{Hotel}
172 \newcommand{\flagHblazon}{per pale argent and gules}
173 \newcommand{\flagH}{%
174 \setflagdimensions
175 \begin{tikzpicture}
176 \fill [argent] (0,0) rectangle (0.5\fl@gwidth,\fl@glength);
177 \fill [gules] (0.5\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
178 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
179 \end{tikzpicture}%
180 }
181
182 % I India, or, a pellet
183 \newcommand{\flagIname}{India}
184 \newcommand{\flagIblazon}{or, a pellet}
185 \newcommand{\flagI}{%
186 \setflagdimensions
187 \begin{tikzpicture}
188 \fill [or] (0,0) rectangle (\fl@gwidth,\fl@glength);
189 \fill [sable] (0.5\fl@gwidth,0.5\fl@glength) circle (0.25\fl@gwidth);
190 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
191 \end{tikzpicture}%
192 }
193
194 % J Juliet, azure, a fess argent
195 \newcommand{\flagJname}{Juliet}
196 \newcommand{\flagJblazon}{azure, a fess argent}
197 \newcommand{\flagJ}{%
198 \setflagdimensions
199 \begin{tikzpicture}
200 \fill [azure] (0,0) rectangle (\fl@gwidth,0.333333*\fl@glength);
201 \fill [argent] (0,0.333333*\fl@glength) rectangle (\fl@gwidth,0.666667*\fl@glength);
202 \fill [azure] (0,0.666667*\fl@glength) rectangle (\fl@gwidth,\fl@glength);
203 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
204 \end{tikzpicture}%
205 }
206
207 % K Kilo, per pale or and azure
208 \newcommand{\flagKname}{Kilo}
209 \newcommand{\flagKblazon}{per pale or and azure}
210 \newcommand{\flagK}{%
211 \setflagdimensions
212 \begin{tikzpicture}
213 \fill [or] (0,0) rectangle (0.5\fl@gwidth,\fl@glength);
214 \fill [azure] (0.5\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
215 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
216 \end{tikzpicture}%
217 }
218
219 % L Lima, quarterly or and sable
220 \newcommand{\flagLname}{Lima}
221 \newcommand{\flagLblazon}{quarterly or and sable}
222 \newcommand{\flagL}{%
223 \setflagdimensions
224 \begin{tikzpicture}
225 \fill [sable] (0,0) rectangle (0.5\fl@gwidth,0.5\fl@glength);
226 \fill [or] (0.5\fl@gwidth,0) rectangle (\fl@gwidth,0.5\fl@glength);
227 \fill [or] (0,0.5\fl@glength) rectangle (0.5\fl@gwidth,\fl@glength);
228 \fill [sable] (0.5\fl@gwidth,0.5\fl@glength) rectangle (\fl@gwidth,\fl@glength);
229 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
230 \end{tikzpicture}%
231 }
232
233 % M Mike, azure, a saltire argent
234 \newcommand{\flagMname}{Mike}
235 \newcommand{\flagMblazon}{azure, a saltire argent}
236 \newcommand{\flagM}{%
237 \setflagdimensions
238 \begin{tikzpicture}
239 \fill [azure] (0,0) rectangle (\fl@gwidth,\fl@glength);
240 \fill [argent] (0,0)
241 -- (\saltiredepth,0)
242 -- (\fl@gwidth,\fl@glength-\saltiredepth)
243 -- (\fl@gwidth,\fl@glength)
244 -- (\fl@gwidth-\saltiredepth,\fl@glength)
245 -- (0,\saltiredepth)
246 -- cycle;
247 \fill [argent] (0,\fl@glength)
248 -- (\saltiredepth,\fl@glength)
249 -- (\fl@gwidth,\saltiredepth)
250 -- (\fl@gwidth,0)
251 -- (\fl@gwidth-\saltiredepth,0)
252 -- (0,\fl@glength-\saltiredepth)
253 -- cycle;
254 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
255 \end{tikzpicture}%
256 }
257
258 % N November, chequy of sixteen azure and argent
259 \newcommand{\flagNname}{November}
260 \newcommand{\flagNblazon}{chequy of sixteen azure and argent}
261 \newcommand{\flagN}{%
262 \setflagdimensions
263 \begin{tikzpicture}
264 \fill [argent] (0,0) rectangle (0.25\fl@gwidth,0.25\fl@glength);
265 \fill [azure] (0.25\fl@gwidth,0) rectangle (0.5\fl@gwidth,0.25\fl@glength);
266 \fill [argent] (0.5\fl@gwidth,0) rectangle (0.75\fl@gwidth,0.25\fl@glength);
267 \fill [azure] (0.75\fl@gwidth,0) rectangle (\fl@gwidth,0.25\fl@glength);
268 \fill [azure] (0,0.25\fl@glength) rectangle (0.25\fl@gwidth,0.5\fl@glength);
269 \fill [argent] (0.25\fl@gwidth,0.25\fl@glength) rectangle (0.5\fl@gwidth,0.5\fl@glength);
270 \fill [azure] (0.5\fl@gwidth,0.25\fl@glength) rectangle (0.75\fl@gwidth,0.5\fl@glength);
271 \fill [argent] (0.75\fl@gwidth,0.25\fl@glength) rectangle (\fl@gwidth,0.5\fl@glength);
272 \fill [argent] (0,0.5\fl@glength) rectangle (0.25\fl@gwidth,0.75\fl@glength);
273 \fill [azure] (0.25\fl@gwidth,0.5\fl@glength) rectangle (0.5\fl@gwidth,0.75\fl@glength);
274 \fill [argent] (0.5\fl@gwidth,0.5\fl@glength) rectangle (0.75\fl@gwidth,0.75\fl@glength);
275 \fill [azure] (0.75\fl@gwidth,0.5\fl@glength) rectangle (\fl@gwidth,0.75\fl@glength);
276 \fill [azure] (0,0.75\fl@glength) rectangle (0.25\fl@gwidth,\fl@glength);
277 \fill [argent] (0.25\fl@gwidth,0.75\fl@glength) rectangle (0.5\fl@gwidth,\fl@glength);
278 \fill [azure] (0.5\fl@gwidth,0.75\fl@glength) rectangle (0.75\fl@gwidth,\fl@glength);
279 \fill [argent] (0.75\fl@gwidth,0.75\fl@glength) rectangle (\fl@gwidth,\fl@glength);
280 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
281 \end{tikzpicture}%
282 }
283
284 % O Oscar, per bend gules and or
285 \newcommand{\flagOname}{Oscar}
286 \newcommand{\flagOblazon}{per bend gules and or}
287 \newcommand{\flagO}{%
288 \setflagdimensions
289 \begin{tikzpicture}
290 \fill [or] (0,0) -- (0,\fl@glength) -- (\fl@gwidth,0) -- cycle;
291 \fill [gules] (0,\fl@glength) -- (\fl@gwidth,\fl@glength) -- (\fl@gwidth,0) -- cycle;
292 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
293 \end{tikzpicture}%
294 }
295
296 % P Papa, azure, an inescutcheon argent
297 \newcommand{\flagPname}{Papa}
298 \newcommand{\flagPblazon}{azure, an inescutcheon argent}
299 \newcommand{\flagP}{%
300 \setflagdimensions
301 \begin{tikzpicture}
302 \fill [azure] (0,0) rectangle (\fl@gwidth,\fl@glength);
303 \fill [argent] (0.333333\fl@gwidth,0.333333\fl@glength) rectangle (0.666667\fl@gwidth,0.666667\fl@glength);
304 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
305 \end{tikzpicture}%
306 }
307
308 % Q Quebec, or
309 \newcommand{\flagQname}{Quebec}
310 \newcommand{\flagQblazon}{or}
311 \newcommand{\flagQ}{%
312 \setflagdimensions
313 \begin{tikzpicture}
314 \fill [or] (0,0) rectangle (\fl@gwidth,\fl@glength);
315 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
316 \end{tikzpicture}%
317 }
318
319 % R Romeo, gules, a cross or
320 \newcommand{\flagRname}{Romeo}
321 \newcommand{\flagRblazon}{gules, a cross or}
322 \newcommand{\flagR}{%
323 \setflagdimensions
324 \begin{tikzpicture}
325 \fill [gules] (0,0) rectangle (\fl@gwidth,\fl@glength);
326 \fill [or] (0.4\fl@gwidth,0) rectangle (0.6\fl@gwidth,\fl@glength);
327 \fill [or] (0,0.4\fl@glength) rectangle (\fl@gwidth,0.6\fl@glength);
328 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
329 \end{tikzpicture}%
330 }
331
332 % S Sierra, argent, an inescutcheon azure
333 \newcommand{\flagSname}{Sierra}
334 \newcommand{\flagSblazon}{argent, an inescutcheon azure}
335 \newcommand{\flagS}{%
336 \setflagdimensions
337 \begin{tikzpicture}
338 \fill [argent] (0,0) rectangle (\fl@gwidth,\fl@glength);
339 \fill [azure] (0.333333\fl@gwidth,0.333333\fl@glength) rectangle (0.666667\fl@gwidth,0.666667\fl@glength);
340 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
341 \end{tikzpicture}%
342 }
343
344 % T Tango, tierced in pale gules, argent and azure
345 \newcommand{\flagTname}{Tango}
346 \newcommand{\flagTblazon}{tierced in pale gules, argent and azure}
347 \newcommand{\flagT}{%
348 \setflagdimensions
349 \begin{tikzpicture}
350 \fill [gules] (0,0) rectangle (0.333333\fl@gwidth,\fl@glength);
351 \fill [argent] (0.333333\fl@gwidth,0) rectangle (0.666667\fl@gwidth,\fl@glength);
352 \fill [azure] (0.666667\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
353 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
354 \end{tikzpicture}%
355 }
356
357 % U Uniform, quarterly gules and argent
358 \newcommand{\flagUname}{Uniform}
359 \newcommand{\flagUblazon}{quarterly gules and argent}
360 \newcommand{\flagU}{%
361 \setflagdimensions
362 \begin{tikzpicture}
363 \fill [argent] (0,0) rectangle (0.5\fl@gwidth,0.5\fl@glength);
364 \fill [gules] (0.5\fl@gwidth,0) rectangle (\fl@gwidth,0.5\fl@glength);
365 \fill [gules] (0,0.5\fl@glength) rectangle (0.5\fl@gwidth,\fl@glength);
366 \fill [argent] (0.5\fl@gwidth,0.5\fl@glength) rectangle (\fl@gwidth,\fl@glength);
367 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
368 \end{tikzpicture}%
369 }
370
371 % V Victor, argent, a saltire gules
372 \newcommand{\flagVname}{Victor}
373 \newcommand{\flagVblazon}{argent, a saltire gules}
374 \newcommand{\flagV}{%
375 \setflagdimensions
376 \begin{tikzpicture}
377 \fill [argent] (0,0) rectangle (\fl@gwidth,\fl@glength);
378 \fill [gules] (0,0)
379 -- (\saltiredepth,0)
380 -- (\fl@gwidth,\fl@glength-\saltiredepth)
381 -- (\fl@gwidth,\fl@glength)
382 -- (\fl@gwidth-\saltiredepth,\fl@glength)
383 -- (0,\saltiredepth)
384 -- cycle;
385 \fill [gules] (0,\fl@glength)
386 -- (\saltiredepth,\fl@glength)
387 -- (\fl@gwidth,\saltiredepth)
388 -- (\fl@gwidth,0)
389 -- (\fl@gwidth-\saltiredepth,0)
390 -- (0,\fl@glength-\saltiredepth)
391 -- cycle;
392 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
393 \end{tikzpicture}%
394 }
395
396 % W Whiskey, azure, an inescutcheon gules fimbriated argent
397 \newcommand{\flagWname}{Whiskey}
398 \newcommand{\flagWblazon}{azure, an inescutcheon gules fimbriated argent}
399 \newcommand{\flagW}{%
400 \setflagdimensions
401 \begin{tikzpicture}
402 \fill [azure] (0,0) rectangle (\fl@gwidth,\fl@glength);
403 \fill [argent] (0.2\fl@gwidth,0.2\fl@glength) rectangle (0.8\fl@gwidth,0.8\fl@glength);
404 \fill [gules] (0.4\fl@gwidth,0.4\fl@glength) rectangle (0.6\fl@gwidth,0.6\fl@glength);
405 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
406 \end{tikzpicture}%
407 }
408
409 % X X-ray, argent, a cross azure
410 \newcommand{\flagXname}{X-ray}
411 \newcommand{\flagXblazon}{argent, a cross azure}
412 \newcommand{\flagX}{%
413 \setflagdimensions
414 \begin{tikzpicture}
415 \fill [argent] (0,0) rectangle (\fl@gwidth,\fl@glength);
416 \fill [azure] (0.4\fl@gwidth,0) rectangle (0.6\fl@gwidth,\fl@glength);
417 \fill [azure] (0,0.4\fl@glength) rectangle (\fl@gwidth,0.6\fl@glength);
418 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
419 \end{tikzpicture}%
420 }
421
422 % Y Yankee, bendy sinister of ten or and gules
423 \newcommand{\flagYname}{Yankee}
424 \newcommand{\flagYblazon}{bendy sinister of ten or and gules}
425 \newcommand{\flagY}{%
426 \setflagdimensions
427 \begin{tikzpicture}
428 \fill [or] (0,0) rectangle (\fl@gwidth,\fl@glength);
429 \fill [gules] (0,0.8\fl@glength)
430 -- (0.2\fl@gwidth,\fl@glength)
431 -- (0.4\fl@gwidth,\fl@glength)
432 -- (0,0.6\fl@glength)
433 -- cycle;
434 \fill [gules] (0,0.4\fl@glength)
435 -- (0.6\fl@gwidth,\fl@glength)
436 -- (0.8\fl@gwidth,\fl@glength)
437 -- (0,0.2\fl@glength)
438 -- cycle;
439 \fill [gules] (0,0)
440 -- (\fl@gwidth,\fl@glength)
441 -- (\fl@gwidth,0.8\fl@glength)
442 -- (0.2\fl@gwidth,0)
443 -- cycle;
444 \fill [gules] (0.4\fl@gwidth,0)
445 -- (\fl@gwidth,0.6\fl@glength)
446 -- (\fl@gwidth,0.4\fl@glength)
447 -- (0.6\fl@gwidth,0)
448 -- cycle;
449 \fill [gules] (0.8\fl@gwidth,0)
450 -- (\fl@gwidth,0.2\fl@glength)
451 -- (\fl@gwidth,0)
452 -- cycle;
453 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
454 \end{tikzpicture}%
455 }
456
457 % Z Zulu, per saltire or, sable, gules, and azure
458 \newcommand{\flagZname}{Zulu}
459 \newcommand{\flagZblazon}{per saltire or, sable, gules, and azure}
460 \newcommand{\flagZ}{%
461 \setflagdimensions
462 \begin{tikzpicture}
463 \fill [or] (0,0) rectangle (\fl@gwidth,\fl@glength);
464 \fill [sable] (0,0) -- (0,\fl@glength) -- (0.5\fl@gwidth,0.5\fl@glength) -- cycle;
465 \fill [gules] (0,0) -- (\fl@gwidth,0) -- (0.5\fl@gwidth,0.5\fl@glength) -- cycle;
466 \fill [azure] (\fl@gwidth,0) -- (\fl@gwidth,\fl@glength) -- (0.5\fl@gwidth,0.5\fl@glength) -- cycle;
467 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
468 \end{tikzpicture}%
469 }
470
471 % 0 Zero, argent, five crosses hummetty azure in saltire
472 \newcommand{\flagZeroName}{Zero}
473 \newcommand{\flagZeroBlazon}{argent, five crosses hummetty azure in saltire}
474 \newcommand{\flagZero}{%
475 \setflagdimensions
476 \begin{tikzpicture}
477 \fill [argent] (0,0) rectangle (\fl@gwidth,\fl@glength);
478 %
479 \fill [azure] (0.066667\fl@gwidth,0.066667\fl@glength) rectangle (0.266667\fl@gwidth,0.266667\fl@glength);
480 \fill [argent] (0.066667\fl@gwidth,0.066667\fl@glength) rectangle (0.133333\fl@gwidth,0.133333\fl@glength);
481 \fill [argent] (0.066667\fl@gwidth,0.2\fl@glength) rectangle (0.133333\fl@gwidth,0.266667\fl@glength);
482 \fill [argent] (0.2\fl@gwidth,0.066667\fl@glength) rectangle (0.266667\fl@gwidth,0.133333\fl@glength);
483 \fill [argent] (0.2\fl@gwidth,0.2\fl@glength) rectangle (0.266667\fl@gwidth,0.266667\fl@glength);
484 \draw [argent] (0.066667\fl@gwidth,0.066667\fl@glength) rectangle (0.266667\fl@gwidth,0.266667\fl@glength);
485 %
486 \fill [azure] (0.066667\fl@gwidth,0.733333\fl@glength) rectangle (0.266667\fl@gwidth,0.933333\fl@glength);
487 \fill [argent] (0.066667\fl@gwidth,0.733333\fl@glength) rectangle (0.133333\fl@gwidth,0.8\fl@glength);
488 \fill [argent] (0.066667\fl@gwidth,0.866667\fl@glength) rectangle (0.133333\fl@gwidth,0.933333\fl@glength);
489 \fill [argent] (0.2\fl@gwidth,0.733333\fl@glength) rectangle (0.266667\fl@gwidth,0.8\fl@glength);
490 \fill [argent] (0.2\fl@gwidth,0.866667\fl@glength) rectangle (0.266667\fl@gwidth,0.933333\fl@glength);
491 \draw [argent] (0.066667\fl@gwidth,0.733333\fl@glength) rectangle (0.266667\fl@gwidth,0.933333\fl@glength);
492 %
493 \fill [azure] (0.733333\fl@gwidth,0.066667\fl@glength) rectangle (0.933333\fl@gwidth,0.266667\fl@glength);
494 \fill [argent] (0.733333\fl@gwidth,0.066667\fl@glength) rectangle (0.8\fl@gwidth,0.133333\fl@glength);
495 \fill [argent] (0.733333\fl@gwidth,0.2\fl@glength) rectangle (0.8\fl@gwidth,0.266667\fl@glength);
496 \fill [argent] (0.866667\fl@gwidth,0.066667\fl@glength) rectangle (0.933333\fl@gwidth,0.133333\fl@glength);
497 \fill [argent] (0.866667\fl@gwidth,0.2\fl@glength) rectangle (0.933333\fl@gwidth,0.266667\fl@glength);
498 \draw [argent] (0.733333\fl@gwidth,0.066667\fl@glength) rectangle (0.933333\fl@gwidth,0.266667\fl@glength);
499 %
500 \fill [azure] (0.733333\fl@gwidth,0.733333\fl@glength) rectangle (0.933333\fl@gwidth,0.933333\fl@glength);
501 \fill [argent] (0.733333\fl@gwidth,0.733333\fl@glength) rectangle (0.8\fl@gwidth,0.8\fl@glength);
502 \fill [argent] (0.733333\fl@gwidth,0.866667\fl@glength) rectangle (0.8\fl@gwidth,0.933333\fl@glength);
503 \fill [argent] (0.866667\fl@gwidth,0.733333\fl@glength) rectangle (0.933333\fl@gwidth,0.8\fl@glength);
504 \fill [argent] (0.866667\fl@gwidth,0.866667\fl@glength) rectangle (0.933333\fl@gwidth,0.933333\fl@glength);
505 \draw [argent] (0.733333\fl@gwidth,0.733333\fl@glength) rectangle (0.933333\fl@gwidth,0.933333\fl@glength);
506 % cross centered on 0.5\fl@gwidth, 0.5\fl@glength
507 \fill [azure] (0.4\fl@gwidth,0.4\fl@glength) rectangle (0.6\fl@gwidth,0.6\fl@glength);
508 \fill [argent] (0.4\fl@gwidth,0.4\fl@glength) rectangle (0.466667\fl@gwidth,0.466667\fl@glength);
509 \fill [argent] (0.4\fl@gwidth,0.533333\fl@glength) rectangle (0.466667\fl@gwidth,0.6\fl@glength);
510 \fill [argent] (0.533333\fl@gwidth,0.4\fl@glength) rectangle (0.6\fl@gwidth,0.466667\fl@glength);
511 \fill [argent] (0.533333\fl@gwidth,0.533333\fl@glength) rectangle (0.6\fl@gwidth,0.6\fl@glength);
512 \draw [argent] (0.4\fl@gwidth,0.4\fl@glength) rectangle (0.6\fl@gwidth,0.6\fl@glength);
513 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
514 \end{tikzpicture}%
515 }
516
517 % 1 One, gules, a fess or
518 \newcommand{\flagOneName}{One}
519 \newcommand{\flagOneBlazon}{gules, a fess or}
520 \newcommand{\flagOne}{%
521 \setflagdimensions
522 \begin{tikzpicture}
523 \fill [gules] (0,0) rectangle (\fl@gwidth,0.333333\fl@glength);
524 \fill [or] (0,0.333333\fl@glength) rectangle (\fl@gwidth,0.666667\fl@glength);
525 \fill [gules] (0,0.666667\fl@glength) rectangle (\fl@gwidth,\fl@glength);
526 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
527 \end{tikzpicture}%
528 }
529
530 % 2 Two, or, a fess gules
531 \newcommand{\flagTwoName}{Two}
532 \newcommand{\flagTwoBlazon}{or, a fess gules}
533 \newcommand{\flagTwo}{%
534 \setflagdimensions
535 \begin{tikzpicture}
536 \fill [or] (0,0) rectangle (\fl@gwidth,0.333333\fl@glength);
537 \fill [gules] (0,0.333333\fl@glength) rectangle (\fl@gwidth,0.666667\fl@glength);
538 \fill [or] (0,0.666667\fl@glength) rectangle (\fl@gwidth,\fl@glength);
539 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
540 \end{tikzpicture}%
541 }
542
543 % 3 Three, azure, a fess gules
544 \newcommand{\flagThreeName}{Three}
545 \newcommand{\flagThreeBlazon}{azure, a fess gules}
546 \newcommand{\flagThree}{%
547 \setflagdimensions
548 \begin{tikzpicture}
549 \fill [azure] (0,0) rectangle (\fl@gwidth,0.333333\fl@glength);
550 \fill [gules] (0,0.333333\fl@glength) rectangle (\fl@gwidth,0.666667\fl@glength);
551 \fill [azure] (0,0.666667\fl@glength) rectangle (\fl@gwidth,\fl@glength);
552 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
553 \end{tikzpicture}%
554 }
555
556 % 4 Four, gules, a saltire argent
557 \newcommand{\flagFourName}{Four}
558 \newcommand{\flagFourBlazon}{gules, a saltire argent}
559 \newcommand{\flagFour}{%
560 \setflagdimensions
561 \begin{tikzpicture}
562 \fill [gules] (0,0) rectangle (\fl@gwidth,\fl@glength);
563 \fill [argent] (0,0)
564 -- (\saltiredepth,0)
565 -- (\fl@gwidth,\fl@glength-\saltiredepth)
566 -- (\fl@gwidth,\fl@glength)
567 -- (\fl@gwidth-\saltiredepth,\fl@glength)
568 -- (0,\saltiredepth)
569 -- cycle;
570 \fill [argent] (0,\fl@glength)
571 -- (\saltiredepth,\fl@glength)
572 -- (\fl@gwidth,\saltiredepth)
573 -- (\fl@gwidth,0)
574 -- (\fl@gwidth-\saltiredepth,0)
575 -- (0,\fl@glength-\saltiredepth)
576 -- cycle;
577 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
578 \end{tikzpicture}%
579 }
580
581 % 5 Five, or, a saltire azure
582 \newcommand{\flagFiveName}{Five}
583 \newcommand{\flagFiveBlazon}{or, a saltire azure}
584 \newcommand{\flagFive}{%
585 \setflagdimensions
586 \begin{tikzpicture}
587 \fill [or] (0,0) rectangle (\fl@gwidth,\fl@glength);
588 \fill [azure] (0,0)
589 -- (\saltiredepth,0)
590 -- (\fl@gwidth,\fl@glength-\saltiredepth)
591 -- (\fl@gwidth,\fl@glength)
592 -- (\fl@gwidth-\saltiredepth,\fl@glength)
593 -- (0,\saltiredepth)
594 -- cycle;
595 \fill [azure] (0,\fl@glength)
596 -- (\saltiredepth,\fl@glength)
597 -- (\fl@gwidth,\saltiredepth)
598 -- (\fl@gwidth,0)
599 -- (\fl@gwidth-\saltiredepth,0)
600 -- (0,\fl@glength-\saltiredepth)
601 -- cycle;
602 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
603 \end{tikzpicture}%
604 }
605
606 % 6 Six, bendy sinister of seven argent and azure
607 \newcommand{\flagSixName}{Six}
608 \newcommand{\flagSixBlazon}{bendy sinister of seven argent and azure}
609 \newcommand{\flagSix}{%
610 \setflagdimensions
611 \begin{tikzpicture}
612 \fill [argent] (0,0) rectangle (\fl@gwidth,\fl@glength);
613 \fill [azure] (0,0.142857\fl@glength)
614 -- (0.857143\fl@gwidth,\fl@glength)
615 -- (\fl@gwidth,\fl@glength)
616 -- (\fl@gwidth,0.857143\fl@glength)
617 -- (0.142857\fl@gwidth,0)
618 -- (0,0)
619 -- cycle;
620 \fill [azure] (0,0.428571\fl@glength)
621 -- (0.571429\fl@gwidth,\fl@glength)
622 -- (0.285714\fl@gwidth,\fl@glength)
623 -- (0,0.714286\fl@glength)
624 -- cycle;
625 \fill [azure] (\fl@gwidth,0.571429\fl@glength)
626 -- (\fl@gwidth,0.285714\fl@glength)
627 -- (0.714286\fl@gwidth,0)
628 -- (0.428571\fl@gwidth,0)
629 -- cycle;
630 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
631 \end{tikzpicture}%
632 }
633
634 % 7 Seven, gules, a pale argent
635 \newcommand{\flagSevenName}{Seven}
636 \newcommand{\flagSevenBlazon}{gules, a pale argent}
637 \newcommand{\flagSeven}{%
638 \setflagdimensions
639 \begin{tikzpicture}
640 \fill [gules] (0,0) rectangle (0.333333\fl@gwidth,\fl@glength);
641 \fill [argent] (0.333333\fl@gwidth,0) rectangle (0.666667\fl@gwidth,\fl@glength);
642 \fill [gules] (0.666667\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
643 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
644 \end{tikzpicture}%
645 }
646
647 % 8 Eight, or, a pale azure
648 \newcommand{\flagEightName}{Eight}
649 \newcommand{\flagEightBlazon}{or, a pale azure}
650 \newcommand{\flagEight}{%
651 \setflagdimensions
652 \begin{tikzpicture}
653 \fill [or] (0,0) rectangle (0.333333\fl@gwidth,\fl@glength);
654 \fill [azure] (0.333333\fl@gwidth,0) rectangle (0.666667\fl@gwidth,\fl@glength);
655 \fill [or] (0.666667\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
656 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
657 \end{tikzpicture}%
658 }
659
660 % 9 Nine, azure, a pale argent
661 \newcommand{\flagNineName}{Nine}
662 \newcommand{\flagNineBlazon}{azure, a pale argent}
663 \newcommand{\flagNine}{%
664 \setflagdimensions
665 \begin{tikzpicture}
666 \fill [azure] (0,0) rectangle (0.333333\fl@gwidth,\fl@glength);
667 \fill [argent] (0.333333\fl@gwidth,0) rectangle (0.666667\fl@gwidth,\fl@glength);
668 \fill [azure] (0.666667\fl@gwidth,0) rectangle (\fl@gwidth,\fl@glength);
669 \draw [gridcolor] (0,0) rectangle (\fl@gwidth,\fl@glength);
670 \end{tikzpicture}%
671 }