Debian Codegraph @

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

raw
1 % --------------------------------------------------------------------------
2 % Congo (Democratic Republic):
3 % --------------------------------------------------------------------------
4 \begin{flagdescription}{3/4}
5 \definecolor{red}{RGB}{249,66,58}
6 \definecolor{blue}{RGB}{0,163,224}
7 \definecolor{gold}{RGB}{255,215,0}
8 \fill [blue] (0,0) rectangle (\flaglength,1);
9 \starV{gold}{(0.24*\stretchfactor,0.742)}{0.1893*\flagwidth}{0}
10 \begin{scope}
11 \clip (0,0) rectangle (\flaglength,1);
12 \newdimen\dd\dd=0.00148\flagwidth
13 \newdimen\bb\bb=0.01\flaglength
14 \newdimen\hh\hh=0.01\flagwidth
15 \pgfmathparse{50*(\bb*\dd*sqrt(\hh^2+\bb^2-\dd^2)-\hh*\dd^2)/(\bb^2-\dd^2)}
16 \edef\x{\pgfmathresult}
17 \coordinate (c1) at (0,\x*1pt);
18 \coordinate (c2) at (\flaglength,\flagwidth-\x*1pt);
19 \draw [gold,line width=133.33\dd,line cap=rect] (c1)--(c2);
20 \draw [red,line width=100\dd,line cap=rect] (c1)--(c2);
21 \end{scope}
22 \framecode{}
23 \end{flagdescription}