Debian Codegraph @

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

raw
1 % --------------------------------------------------------------------------
2 % South Africa:
3 % --------------------------------------------------------------------------
4 \begin{flagdescription}{2/3}
5 \definecolor{red}{RGB}{224,60,49}
6 \definecolor{blue}{RGB}{0,20,137}
7 \definecolor{green}{RGB}{0,119,73}
8 \definecolor{gold}{RGB}{255,184,28}
9 \coordinate (c) at (2/3*\stretchfactor,0.5);
10 \hstripesIII{red}{white}{blue}
11 \begin{scope}
12 \clip (0,0) rectangle (\flagwidth*\stretchfactor,1);
13 \fill [black] (0,0)--(c)--(0,1)--cycle;
14 \draw [white,line width=\flagwidth/3] (0,0)--(c);
15 \draw [white,line width=\flagwidth/3] (0,1)--(c);
16 \begin{scope}
17 \clip (0,0)--(c)--(0,1)--cycle;
18 \draw [gold,line width=\flagwidth/3] (0,0)--(c);
19 \draw [gold,line width=\flagwidth/3] (0,1)--(c);
20 \end{scope}
21 \draw [green,line width=\flagwidth/5] (0,0)--(c);
22 \draw [green,line width=\flagwidth/5] (0,1)--(c);
23 \end{scope}
24 \fill [green] (\flaglength,0.6)-|(c)|-(\flaglength,0.4)--cycle;
25 \framecode{}
26 \end{flagdescription}