Debian Codegraph @

texmf-dist/tex/latex/worldflags/worldflag_BA.tex

raw
1 % --------------------------------------------------------------------------
2 % Bosnia and Herzogovina:
3 % --------------------------------------------------------------------------
4 \begin{flagdescription}{1/2}
5 \definecolor{blue}{RGB}{0,47,108}
6 \definecolor{gold}{RGB}{255,205,0}
7 \begin{scope}
8 \clip (0,0) rectangle (\flaglength,\flagwidth);
9 \coordinate (h1) at (0.265\flaglength,1);
10 \coordinate (h2) at (0.765\flaglength,1);
11 \coordinate (h3) at (0.765\flaglength,0);
12 \fill [blue](0,0) rectangle (\flaglength,1);
13 \fill[gold] (h1)--(h2)--(h3)--cycle;
14 \pgfmathparse{atan(\flagwidth/(\flaglength-\flagwidth))}\edef\alpha{\pgfmathresult}
15 \pgfmathparse{0.1425/sin(\alpha)}\edef\xx{\pgfmathresult}
16 \foreach \n in {0,1,...,8} {\starV{white}%
17 {($(h3)+(-\n*\flaglength/16,\n\flagwidth/8)+(-\xx,0.03\flagwidth)$)}{0.095}{0}}
18 \end{scope}
19 \framecode{}
20 \end{flagdescription}