This is my code to draw a triangle. I want to inverse/rotate this triangle (i.e., the top of the triangle is down)
\usepackage{etoolbox}
\usepackage{tikz}
\newrobustcmd*{\mytriangle}[1]{\tikz{\filldraw[draw=#1,fill=#1] (0,0) --
(0.2cm,0) -- (0.1cm,0.2cm);}}
\begin{document}
\mytriangle{blue}
\end{document}