Debian Codegraph @

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

raw
1 % \iffalse
2 % --------------------------------------------------------------------
3 %<*hex>
4 % \fi
5 % Next, we define some styles for styling the terrain pictures. Users
6 % can change these styles (e.g., by appending to them) to change say
7 % the colour of the terrain graphics.
8 %
9 %
10 % \begin{TikzKey}{hex/terrain/fields}
11 % The style for field hexes. The pattern is rectangles of varying
12 % opacity to overlay on a fill colour, so as to create variations in
13 % how the terrain comes out.
14 %
15 % \begin{macrocode}
16 \tikzset{
17 hex/terrain/fields/.style={%
18 draw=none%
19 }%
20 }
21 % \end{macrocode}
22 % \end{TikzKey}
23 %
24 % \begin{TikzKey}{hex/terrain/fields}
25 % Now for the actual pattern.
26 %
27 % \begin{center}
28 % \includegraphics{wargame.fields}
29 % \end{center}
30 %
31 % \begin{macrocode}
32 \ifhex@terrain@pic
33 \tikzset{
34 hex/terrain/fields/.pic={
35 \path[draw=none,fill=none](1,0)
36 --(60:1)
37 --(120:1)
38 --(180:1)
39 --(240:1)
40 --(300:1)
41 --cycle;
42 \fill[black,opacity=.05] ( .1, .3)rectangle++(.5,.4);
43 \fill[white,opacity=.15] (-.65, -.5)rectangle++(.3,.5);
44 \fill[white,opacity=.25] (-.60, .2)rectangle++(.6,.5);
45 \fill[black,opacity=.02] (-.30, -.1)rectangle++(.4,.2);
46 \fill[black,opacity=.02] (-.50, -.8)rectangle++(.4,.25);
47 \fill[black,opacity=.05] (-.30, -.5)rectangle++(.4,.35);
48 \fill[white,opacity=.15] ( .15, -.6)rectangle++(.4,.8);
49 \fill[black,opacity=.02] (-.05, -.8)rectangle++(.5,.15);
50 \fill[black,opacity=.02] (-.8, -.3)rectangle++(.1,.6);
51 \fill[black,opacity=.02] ( .6, -.35)rectangle++(.2,.6);
52 }
53 }
54 \fi
55 % \end{macrocode}
56 % \end{TikzKey}
57 % \iffalse
58 %</hex>
59 % --------------------------------------------------------------------
60 % \fi