1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
\documentclass{standalone}
\usepackage{tikz}
\usepackage{shapes}
\begin{document}
\begin{tikzpicture}
\clip(-1.01,-3.01)--(7.01,-3.01)--(7.01,7.01)--(-1.01,7.01)--cycle;
\foreach \i in {0,...,3}{
\ttsquare{teal}{(2*\i,-2)}
\ttsquare{teal}{(2*\i,0)}
\ttsquare{teal}{(2*\i+1,2)}
\ttsquare{teal}{(2*\i,4)}
\ttsquare{teal}{(2*\i,6)}
}
\ttsquare{teal}{(-1,2)}
\foreach \i in {0,...,3}{
\ttsquareempty{(2*\i,-2)}
\ttsquareempty{(2*\i,0)}
\ttsquareempty{(2*\i+1,2)}
\ttsquareempty{(2*\i,4)}
\ttsquareempty{(2*\i,-6)}
}
\ttsquareempty{(-1,2)}
\end{tikzpicture}
\end{document}
|