その他一覧へ戻る

東京オリンピック

鉄TeX機能紹介/TikZサンプル/東京オリンピック.tex鉄TeX機能紹介 / TikZhybrid

レンダリング結果

1ページ / 同名PDFあり
東京オリンピック preview
PDFを開く
TeXソース
TeXソース
入力コード
\documentclass{tetsujsarticle}
\usepackage{tetsuryoku}
\切り出し{tikzpicture}

\definecolor{Gold1}{HTML}{E7AB17}
\definecolor{Red1}{HTML}{FF1226}
\definecolor{Gold2}{HTML}{FBA900}
\definecolor{Gold}{HTML}{B59147}
\definecolor{Brown}{HTML}{9F3609}
\definecolor{Silver}{HTML}{B4B4B4}
\definecolor{Red}{HTML}{E50015}
\definecolor{Black}{HTML}{373737}
\definecolor{Blue1}{HTML}{A7E5FC}
\definecolor{Blue2}{HTML}{D0E1Fd}

\definecolor{r1}{HTML}{0079CB}
\definecolor{r2}{HTML}{FBB812}
\definecolor{r3}{HTML}{020202}
\definecolor{r4}{HTML}{009D46}
\definecolor{r5}{HTML}{F12741}
\definecolor{c1}{HTML}{C80428}
\definecolor{c2}{HTML}{0059A9}
\definecolor{c3}{HTML}{008A4F}

\font\fontA=ec-qcsb at 25pt
\font\fontB=ec-qagb at 16pt

\def\olympic{%
\node[below,outer sep=1mm] at (3,0) {\fontA TOKYO 2020};
%%% The Olympic Rings : http://www.texample.net/tikz/examples/the-olympic-rings/
\begin{scope}[xshift=3cm,yshift=-27mm,even odd rule]
  \begin{scope}
    \clip (-3,1) rectangle (3,-.45);
    \foreach \col/\xp/\yp in {
      r5/2/0, r4/1/-.9, r3/0/0, r2/-1/-.9, r1/-2/0
    }{
      \fill[\col]
      (\xp, \yp) circle (.95)
      (\xp, \yp) circle (.8);
    }
  \end{scope}
  \begin{scope}
    \clip (-3,-.45) rectangle (3,-1.9);
    \foreach \col/\xp/\yp in {
      r1/-2/0, r2/-1/-.9, r3/0/0, r4/1/-.9, r5/2/0
    }{
      \fill[\col]
      (\xp, \yp) circle (.95)
      (\xp, \yp) circle (.8);
    }
  \end{scope}
\end{scope}
}

%%% Part of the Paralympic logo
\def\wing#1{%
\begin{scope}
  \clip (-11.5,-6.5) rectangle (3,6.5);
  \fill[#1] (0,0) ellipse (11.5 and 6.5);
  \fill[white,rotate=6] (2.3,-.5) ellipse (11.5 and 6.5);
\end{scope}
\draw[white,line width=4pt] (3,-6.5) rectangle (3,6.5);
}

\begin{document}
\begin{tikzpicture}
% Olympic (First draft version)
\fill[Gold1] (0,6) -- (2,6) -- (0,4) -- cycle;
\fill[Blue1] (4,6) -- (6,6) -- (6,4) -- cycle;
\fill[Black] (2,0) rectangle (4,6);
\fill[Red1] (5,1) circle (1);
\olympic

% Olympic (Second version)
\begin{scope}[xshift=8cm]
  \fill[Gold2] (0,4) rectangle (2,6);
  \fill[Brown] (4,0) rectangle (6,2);
  \fill[Blue2] (0,0) rectangle (2,2);
  \fill[white] (3,3) circle (sqrt{10});
  \fill[Black] (2,0) rectangle (4,6);
  \fill[Red1] (5,5) circle (1);
  \olympic
\end{scope}

% Olympic (Final version)
\begin{scope}[yshift=-12cm]
  \fill[Gold] (0,4) rectangle (2,6);
  \fill[Silver] (4,0) rectangle (6,2);
  \fill[white] (3,3) circle (sqrt{10});
  \fill[Black] (2,0) rectangle (4,6);
  \fill[Red] (5,5) circle (1);
  \olympic

% Paralympic
  \begin{scope}[xshift=8cm]
    \begin{scope}
      \clip (0,0) rectangle (6,6);
      \fill[Black] (0,0) rectangle (2,4);
      \fill[Black] (4,2) rectangle (6,6);
      \fill[Gold] (0,4) rectangle (2,6);
      \fill[Silver] (4,0) rectangle (6,2);
      \fill[Black] (3,3) circle (sqrt{10});
      \fill[Red] (5,5) circle (1);
    \end{scope}
    \fill[white] (2,-.1) rectangle (4,6.1);
    \node (A) [below,outer sep=1mm] at (3,0) {\fontA TOKYO 2020};
    \node (B) [below,outer sep=5mm,xscale=1.1,yscale=.9] at (A) {\fontB PARALYMPIC GAMES};
    \node [below,outer sep=3cm,scale=.14] at (B) {%
      \begin{tikzpicture}
      \begin{scope}[rotate=34]
        \wing{c1}
        \begin{scope}[xshift=3cm,yshift=-6cm,rotate=37]
          \wing{c2}
          \begin{scope}[xshift=2.5cm,yshift=-3.5cm,rotate=70]
            \wing{c3}
          \end{scope}
        \end{scope}
      \end{scope}
      \end{tikzpicture}
    };
  \end{scope}
\end{scope}
\end{tikzpicture}
\end{document}