Rotate triangle


[PDF] [TEX]
% !TEX TS-program = pdflatex
\documentclass{standalone}
\usepackage[usenames,dvipsnames]{xcolor} 
\usepackage{tkz-euclide}
\begin{document} 
\begin{tikzpicture}
\tkzDefPoints{00/0/A,12/0/B,6/12*sind(60)/C}
\foreach \density in {20,30,...,240}{%
   \tkzDrawPolygon[fill=MidnightBlue!\density](A,B,C)
   \pgfnodealias{X}{A}
   \tkzDefPointWith[linear,K=.15](A,B) \tkzGetPoint{A}
   \tkzDefPointWith[linear,K=.15](B,C) \tkzGetPoint{B}
   \tkzDefPointWith[linear,K=.15](C,X) \tkzGetPoint{C}
    }
\end{tikzpicture}%
\end{document}

% original version (only tikz)
\begin{tikzpicture}
 \coordinate (A) at (0,0);
 \coordinate (B) at (-60:12cm);
 \coordinate (C) at (240:12cm);
 \foreach \density in {20,30,...,160}{%
     \draw[fill=MidnightBlue!\density] (A)--(B)--(C)--cycle;
     \path
          (A) coordinate (X)
       -- (B) coordinate[pos=.15](A)
       -- (C) coordinate[pos=.15](B)
       -- (X) coordinate[pos=.15](C);
 }
\end{tikzpicture}