summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/worldflags/worldflag_GY.tex
blob: 943a2c5bda9a1335e00baf47d32205f55ca384e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% --------------------------------------------------------------------------
% Guyana:
% --------------------------------------------------------------------------
\BeginFlagDescription{3}{5}
\definecolor{red}{RGB}{200,16,46}
\definecolor{green}{RGB}{0,177,64}
\definecolor{gold}{RGB}{254,219,0}
\fill [green] (0,0) rectangle (\flaglength,1);
\newdimen\d\d=0.05\flagwidth
\fill [white] (0,0)--(\flaglength,0.5)--(0,1)--cycle;
\pgfmathparse{\d/cos(atan2(\flagwidth,2*\flaglength))}
\edef\y{\pgfmathresult}
\pgfmathparse{\d/sin(atan2(0.5\flagwidth,\flaglength))}
\edef\x{\pgfmathresult}
\fill [gold] (0,\y*1pt)--(\flaglength-\x*1pt,0.5)--(0,\flagwidth-\y*1pt)--cycle;
\fill [black] (0,0)--(0.5\flaglength,0.5)--(0,1)--cycle;
\pgfmathparse{\d/cos(atan2(\flagwidth,\flaglength))}
\edef\y{\pgfmathresult}
\pgfmathparse{\d/sin(atan2(\flagwidth,\flaglength))}
\edef\x{\pgfmathresult}
\fill [red] (0,\y*1pt)--(0.5\flaglength-\x*1pt,0.5)--(0,\flagwidth-\y*1pt)--cycle;
\FrameCode
\EndFlagDescription