Each of the five figures is drawn using a combination of a square, some circles and some sort of shading. I need to draw each of these using a single command so that they can fit and make a rectangle without gap, for example a 7 times 11 one. Even the arcs can be replaced by a zizag so that they make a rectangle when fit together but this means advanced computation and plotting.
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=.35]
\draw[fill=cyan] (4.,4.) -- (0.,4.) -- (0,0) -- (4,0) -- cycle;
\draw[fill=white, draw=none](3.5,2) circle (.8cm);
\draw[fill=white, draw=none](2,3.5) circle (.8cm);
\draw[fill=cyan] (7,0) -- (11,0) -- (11,4) -- (7,4) -- cycle;
\draw[fill=white, draw=none](10.5,2) circle (.8cm);
\draw[fill=cyan, draw=none](6.5,2) circle (.8cm);
\draw[fill=cyan, draw=none](9,4.5) circle (.8cm);
\draw[fill=cyan] (14,0) -- (18,0) -- (18,4) -- (14,4) -- cycle;
\draw[fill=cyan, draw=none](13.5,2) circle (.8cm);
\draw[fill=cyan, draw=none](18.5,2) circle (.8cm);
\draw[fill=white, draw=none](16,3.5) circle (.8cm);
\draw[fill=cyan] (21,0) -- (25,0) -- (25,4) -- (21,4) -- cycle;
\draw[fill=white, draw=none](24.5,2) circle (.8cm);
\draw[fill=white, draw=none](21.5,2) circle (.8cm);
\draw[fill=white, draw=none](23,.5) circle (.8cm);
\draw[fill=cyan, draw=none](23,4.5) circle (.8cm);
\draw[fill=cyan] (28,0) -- (32,0) -- (32,4) -- (28,4) -- cycle;
\draw[fill=cyan, draw=none](30,4.5) circle (.8cm);
\draw[fill=cyan, draw=none](32.5,2) circle (.8cm);
\draw[fill=white, draw=none](28.5,2) circle (.8cm);
\draw[fill=white, draw=none](30,.5) circle (.8cm);
\node at (2, -1) {\small type 1};
\node at (9, -1) {\small type 2};
\node at (16, -1) {\small type 3};
\node at (23, -1) {\small type 4};
\node at (30, -1) {\small type 5};
\end{tikzpicture}
\end{document}



