# 【017_エッシャー】コマ大数学科

# 【017_エッシャー】コマ大数学科

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1017176/81169b6b-106a-2578-508e-fbccab2530aa.png)


```latex
\begin{tikzpicture}[xscale=0.7,yscale=0.7]
  % 各点を定義
    \coordinate (O) at (0,0);
    \coordinate (A) at (6,{2*sqrt(3)});
    \coordinate (B) at (6,{3*sqrt(3)});
    \coordinate (C) at (0,{5*sqrt(3)});
    \coordinate (D) at (-1,{14*sqrt(3)/3});
    \coordinate (E) at (-1,{sqrt(3)/3});
    \coordinate (F) at (0,{11*sqrt(3)/3});
    \coordinate (G) at (4,{3*sqrt(3)});
    \coordinate (H) at (1,{4*sqrt(3)/3});
    \coordinate (I) at (1,{2*sqrt(3)});
    \coordinate (J) at (3,{8*sqrt(3)/3});
    \coordinate (K) at (1,{10*sqrt(3)/3});
  % 塗る
    \filldraw [fill=orange!40!white] (O)--(E)--(D)--(G)--(J)--(F)--(O)--cycle;
    \filldraw [fill=orange!20!white] (O)--(F)--(K)--(H)--(B)--(A)--(O)--cycle;

  % 線を引く  
    \draw (O)--(E)--(D)--(G)--(I)--(K);
    \draw (O)--(F)--(J);
    \draw (O)--(A)--(B)--(C)--(D);
    \draw (B)--(H)--(K);
  \end{tikzpicture}
  % 正方形
  \hspace{1cm}
  \begin{tikzpicture}[xscale=0.6,yscale=0.6]
  % 基本の点を定義
    \coordinate (O) at (0,0);
    \coordinate (A) at (7,0);
    \coordinate (B) at (7,7);
    \coordinate (C) at (0,7);
    \coordinate (D) at (3,10);
    \coordinate (E) at (10,10);
    \coordinate (F) at (10,3);
    \filldraw [fill=cyan!30!white](O)--(A)--(B)--(C)--(O)--cycle;
    \filldraw [fill=cyan!10!white](C)--(D)--(E)--(B)--(C)--cycle;
    \filldraw [fill=cyan!60!white](A)--(B)--(E)--(F)--(A)--cycle;
    \draw (O)--(C);
    \draw (B)--(E);
    \draw (A)--(F);
% 正面の正方形の定義
    \coordinate (Ox) at (1,1);
    \coordinate (Ax) at (6,1);
    \coordinate (Bx) at (6,6);
    \coordinate (Cx) at (1,6);
    \filldraw [fill=white] (Ox)--(Ax)--(Bx)--(Cx)--(Ox)--cycle;
    \filldraw [fill=white] (4,8.5)--(4,7.5)--(6.5,7.5)--(7.5,8.5)--cycle;
    \filldraw [fill=cyan!60!white] (Ox)--(Cx)--(1.5,6)--(1.5,1.5)--(Ox)--cycle;
    \filldraw [fill=cyan!20!white] (Ox)--(Ax)--(6,1.5)--(1.5,1.5)--(Ox)--cycle;
    \filldraw [fill=cyan!60!white] (3.5,3.5)--(3.5,2.5)--(2.5,1.5)--(1.5,1.5)--(3.5,3.5)--cycle;
% 下の正方形の定義
    \coordinate (Oz) at (2.5,1.5);
    \coordinate (Az) at (6,1.5);
    \coordinate (Bz) at (6,2.5);
    \coordinate (Cz) at (3.5,2.5);
% 右の正方形の定義
    \coordinate (Ay) at (7.5,1.5);
    \coordinate (By) at (7.5,6.5);
    \coordinate (Ey) at (9.5,3.5);
    \coordinate (Dy) at (9.5,8.5);
    \filldraw [fill=white] (Ay)--(By)--(Dy)--(Ey)--(Ay)--cycle;
    \coordinate (Ay2) at (7.5,4);
    \coordinate (Ey2) at (8.5,7.5);
    \coordinate (Dy2) at (8.5,4);
    \filldraw [fill=cyan!30!white] (8.5,3.5)--(8.5,7.5)--(9.5,8.5)--(9.5,3.5)--(8.5,3.5)--cycle;
    \filldraw [fill=cyan!10!white] (8.5,3.5)--(9.5,3.5)--(7.5,1.5)--(7.5,2.5)--(8.5,3.5)--cycle;
    \filldraw [fill=cyan!30!white] (8.5,3.5)--(3.5,3.5)--(3.5,2.5)--(7.5,2.5)--(8.5,3.5)--cycle;
    \filldraw [fill=cyan!10!white] (8.5,3.5)--(3.5,3.5)--(4,4)--(8.5,4)--(8.5,3.5)--cycle;
    \filldraw [fill=cyan!10!white] (3.5,3.5)--(2.5,3.5)--(1.5,2.5)--(1.5,1.5)--(3.5,3.5)--cycle;
    \filldraw [fill=cyan!30!white] (3.5,3.5)--(3.5,8.5)--(2.5,7.5)--(2.5,3.5)--(3.5,3.5)--cycle;
    \filldraw [fill=cyan!60!white] (3.5,3.5)--(3.5,8.5)--(4,8.5)--(4,4)--(3.5,3.5)--cycle;
    \filldraw [fill=cyan!60!white] (3.5,3.5)--(3.5,8.5)--(4,8.5)--(4,4)--(3.5,3.5)--cycle;
    \filldraw [fill=cyan!60!white] (3.5,8.5)--(3.5,9.5)--(1.5,7.5)--(2.5,7.5)--(3.5,8.5)--cycle;
    \filldraw [fill=cyan!30!white] (3.5,8.5)--(3.5,9.5)--(8.5,9.5)--(7.5,8.5)--(3.5,8.5)--cycle;
 \end{tikzpicture}
```