% Entnommen aus:
% Rotated polygons
% Author: Dr. rer. nat. Ismael Gutierrez Garcia
% http://texample.net/tikz/examples/rotated-polygons/
%
% Angepasst von André Hilbig
% mail@andrehilbig.de
%
\setcounter{density}{20}
\begin{tikzpicture}[alt={Grünliche Rechtecke, die verschoben und rotiert zueinander dupliziert
	werden, um ein Mandalabild zu ergeben. Über dem Mandala ist ein Gitternetz gezeichnet.}]
    \def\couleur{LimeGreen}
    \path[coordinate] (0cm,-5.75cm)  coordinate(A)
                ++( 144:7.4cm) coordinate(B)
                ++(72:7.4cm) coordinate(C)
                ++(0:7.4cm) coordinate(D)
                ++(-72:7.4cm) coordinate(E)
                                ;
    \draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- (E) --  cycle;
    \foreach \x in {1,...,40}{%
        \pgfmathsetcounter{density}{\thedensity+10}
        \setcounter{density}{\thedensity}
        \path[coordinate] coordinate(X) at (A){};
        \path[coordinate] (A) -- (B) coordinate[pos=.10](A)
                            -- (C) coordinate[pos=.10](B)
                            -- (D) coordinate[pos=.10](C)
                            -- (E) coordinate[pos=.10](D)
                             -- (X) coordinate[pos=.10](E);
        \draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) --(E)  -- cycle;
    }
		\ifthenelse{\boolean{rahmen}}{
			\draw [step=2,black, thick] (-6.5cm,-6.5cm) grid (6.5cm,6.5cm);
		}{
			\draw [step=2,transparent] (-6.5cm,-6.5cm) grid (6.5cm,6.5cm);
		}
\end{tikzpicture}
