Debian Codegraph @

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

raw
1 % --------------------------------------------------------------------------
2 % Trinidad and Tobago:
3 % --------------------------------------------------------------------------
4 \begin{flagdescription}{3/5}
5 \definecolor{red}{RGB}{200,16,46}
6 \fill [red] (0,0) rectangle (\flaglength,1);
7 \newdimen\bb\bb=0.01\flaglength
8 \newdimen\hh\hh=0.01\flagwidth
9 \newdimen\dd\dd=0.003333\flagwidth
10 \pgfmathparse{100*(\hh*\dd*sqrt(\hh^2+\bb^2-\dd^2)-\bb*\dd^2)/(\hh^2-\dd^2)}
11 \edef\x{\pgfmathresult}
12 \fill [white] (0,1)--(\x*1pt,1)--(\flaglength,0)--($(\flaglength,0)-(\x*1pt,0)$)--cycle;
13 \fill [black] (\x*1pt/6,1)--(5*\x*1pt/6,1)
14 --($(\flaglength,0)-(\x*1pt/6,0)$)--($(\flaglength,0)-(5*\x*1pt/6,0)$)--cycle;
15 \framecode{}
16 \end{flagdescription}