【016_影】コマ大数学科

# 【016_影】コマ大数学科

tikzの勉強中です。まだまだいい記述方法があると思います。
自分のアウトプット用として残していきます。

![komadai16.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1017176/4447f101-2ca7-1c73-4ec1-0c8c07f117ec.png)



```latex
\begin{tikzpicture}
  \draw [fill=white!60!black,name=C1,very thick](0,0) arc [start angle=-180,end angle=0, x radius=3,y radius=3];
  \draw [fill=white,name=C2,thick](0,0) arc [start angle=-180,end angle=0, x radius=3,y radius=2.5];
  \coordinate (D) at (0,0) node [right]{D};
  \coordinate (D1) at ($(D)+(0,0.5)$);
  \coordinate (C) at (-0.5,0.5) node at (C)[below left]{C};
  \coordinate (C1) at ($(C)+(0,0.5)$);
  \coordinate (B) at (0,1) node at (B)[right]{B};
  \coordinate (B1) at ($(B)+(0,0.5)$);
  \coordinate (A) at (-0.5,1.5) node at (A)[above left]{A};
  \coordinate (A1) at ($(A)+(0,0.5)$);
  \coordinate (J) at (0.5,2.5) node at (J)[below=6]{J};
  \coordinate (J1) at ($(J)+(0,0.5)$);
  \coordinate (I) at (2,1) node at (I)[below]{I};
  \coordinate (I1) at ($(I)+(0,0.5)$);
  \coordinate (H) at (3.5,2.5) node at (H)[below=6]{H};
  \coordinate (H1) at ($(H)+(0,0.5)$);
  \coordinate (G) at (4.5,1.5) node at (G)[below]{G};
  \coordinate (G1) at ($(G)+(0,0.5)$);
  \coordinate (F) at (6,1.5) node at (F)[right]{F};
  \coordinate (F1) at ($(F)+(0,0.5)$);
  \coordinate (E) at (6,0) node at (E)[right]{E};
  \coordinate (E1) at ($(E)+(0,0.5)$);
  % 影をつける
  \filldraw [fill=white!60!black] (D)--(C)--(C1)--(D1)--(D)--cycle;
  \filldraw [fill=white!60!black] (C)--(C1)--(B1)--(B)--(C)--cycle;
  \filldraw [fill=white!60!black] (B)--(B1)--(A1)--(A)--(B)--cycle;
  \filldraw [fill=white!60!black] (A)--(A1)--(J1)--(I1)--(H1)--(G1)--(F1)--(F)--(G)--(H)--(I)--(J)--(A)--cycle;
  \draw[very thick](D)--(C)--(B)--(A)--(J)--(I)--(H)--(G)--(F)--(E);
  % 左の2m間隔の表示
  \draw [dashed](D)--(-3,0);
  \draw [dashed](C)--(-3,0.5);
  \draw [dashed](B)--(-3,1);
  \draw [dashed](A)--(-3,1.5);
% 矢印の表示
  \draw [<->](-2.5,0)--(-2.5,0.5);
  \draw [<->](-2.5,0.5)--(-2.5,1);
  \draw [<->](-2.5,1)--(-2.5,1.5);
% 2mの表示
  \node at (-2.5,0.25)[right,font=\small]{2m};
  \node at (-2.5,0.75)[right,font=\small]{2m};
  \node at (-2.5,1.25)[right,font=\small]{2m};
% 上部の表示
\draw [dashed](A1)--(-0.5,4);
\draw [dashed](J)--(0.5,4);
\draw [dashed](I)--(2,4);
\draw [dashed](H)--(3.5,4);
\draw [dashed](G)--(4.5,4);
\draw [dashed](F1)--(6,4);
% 矢印の表示
\draw [<->](-0.5,3.5)--(0.5,3.5);
\draw [<->](0.5,3.5)--(2,3.5);
\draw [<->](2,3.5)--(3.5,3.5);
\draw [<->](3.5,3.5)--(4.5,3.5);
\draw [<->](4.5,3.5)--(6,3.5);
% 2mの表示
\node at (0,3.5)[above,font=\small]{4m};
\node at (1.25,3.5)[above,font=\small]{6m};
\node at (2.75,3.5)[above,font=\small]{6m};
\node at (4,3.5)[above,font=\small]{4m};
\node at (5.25,3.5)[above,font=\small]{6m};
% 直角の記号を記入
\draw [rotate around={45:(C)}](C) rectangle (-0.3,0.3);
\draw [rotate around={135:(B)}](B) rectangle (0.2,1.2);
\draw [rotate around={-45:(A)}](A) rectangle (-0.3,1.7);
\draw [rotate around={225:(J)}](J) rectangle (0.7,2.7);
\draw [rotate around={45:(I)}](I) rectangle (2.2,1.2);
\draw [rotate around={225:(H)}](H) rectangle (3.7,2.7);
% 45度の表示
\coordinate (G2) at (3.5,1.5);
\draw (G2)--(G);
\draw pic["$45\ddo$",<->,draw=black,angle eccentricity=1.6
8,font=\small, angle radius=0.4cm] {angle=H--G--G2};

\end{tikzpicture}


```