% 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}
    \def\couleur{BlueGreen}
    %\path[coordinate] (0,0)  coordinate(A)
    %            ++( 120:6cm) coordinate(B)
    %            ++(60:6cm) coordinate(C)
    %            ++(0:6cm) coordinate(D)
    %            ++(-60:6cm) coordinate(E)
    %            ++(240:6cm) coordinate(F)
    %            ;
    \path[coordinate] (-3cm,-5.25cm)  coordinate(A)
                ++( 120:6cm) coordinate(B)
                ++(60:6cm) coordinate(C)
                ++(0:6cm) coordinate(D)
                ++(-60:6cm) coordinate(E)
                ++(240:6cm) coordinate(F)
                ;
    \draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- (E) -- (F)-- 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)
                             -- (F) coordinate[pos=.10](E)
                            -- (X) coordinate[pos=.10](F);
        \draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) --(E) -- (F) -- 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}
