I have been trying to recreate the following image in LaTeX
and for me personally it has to be done with pdflatex. Although answers using pst-fractals
From Jake I got a good start which led to the following code
\documentclass{standalone}
\usepackage{tikz}
\def\level{5}
\usetikzlibrary{lindenmayersystems}
\begin{document}
\begin{tikzpicture}[l-system={step=5pt, order=\level, angle=120},rotate=180]
\pgfdeclarelindenmayersystem{Sierpinski triangle}{
\symbol{X}{\pgflsystemdrawforward}
\symbol{Y}{\pgflsystemdrawforward}
\rule{X -> X-Y+X+Y-X}
\rule{Y -> YY}
}
\draw [black] (3,2) l-system
[l-system={Sierpinski triangle, axiom=X, anchor=north east},fill=white];
\end{tikzpicture}
\end{document}
There are however two problems with the code.
I layer a black triangle behind the lindenmayersystem?
How do I keep the size of the triangle consistent with different number of recursion levels.