|
\documentclass[tikz, border=2pt]{standalone}
|
|
\usetikzlibrary{calc}
|
|
\begin{document}
|
|
\begin{tikzpicture}[line width=1pt]
|
|
\foreach \i in {0, 2}{
|
|
\begin{scope}[rotate around={90*\i:(-3.5, 2.5)}]
|
|
\coordinate (O1) at (-1, 0);
|
|
\coordinate (P0) at ($(O1)+(-5, 0)$);
|
|
\coordinate (P1) at ($(O1)+(-9/5, 12/5)$);
|
|
\draw[fill=gray, rounded corners=0.01mm] (O1) -- (P0) -- (P1) -- (O1) -- cycle;
|
|
\end{scope}
|
|
}
|
|
\foreach \i in {1, 3}{
|
|
\begin{scope}[rotate around={90*\i:(-3.5, 2.5)}]
|
|
\coordinate (O1) at (-1, 0);
|
|
\coordinate (P0) at ($(O1)+(-5, 0)$);
|
|
\coordinate (P1) at ($(O1)+(-9/5, 12/5)$);
|
|
\draw[fill=lightgray, rounded corners=0.01mm] (O1) -- (P0) -- (P1) -- (O1) -- cycle;
|
|
\end{scope}
|
|
}
|
|
|
|
\draw (O1) -- ($(O1)+(0, 5)$) -- ($(O1)+(5, 5)$) -- ($(O1)+(5, 0)$) -- (O1) -- cycle;
|
|
|
|
\coordinate (O2) at (1, 0);
|
|
\coordinate (Q11) at ($(O2)+(5, 0)$);
|
|
\coordinate (Q12) at ($(O2)+(0, 3)$);
|
|
\filldraw[fill=gray, draw=black] (Q11) rectangle (Q12);
|
|
\draw (Q11) -- (Q12);
|
|
\coordinate (Q22) at ($(Q11)+(3, 4)$);
|
|
\filldraw[fill=lightgray, draw=black] (Q11) rectangle (Q22);
|
|
\draw (Q11) -- (Q22);
|
|
\coordinate (Q31) at ($(Q11)+(0, 4)$);
|
|
\coordinate (Q32) at ($(Q31)+(-1, -1)$);
|
|
\draw (Q31) rectangle (Q32);
|
|
\end{tikzpicture}
|
|
\end{document}
|
评论
Comments powered by Disqus