Dragon Curve fractals in LaTeX
overleaf.com
overleaf.com
[1] http://ctan.ijs.si/tex-archive/graphics/pgf/base/doc/pgfmanu...
The set of complex numbers with all zeroes to the left of the radix point forms a fractal that is two dragon curves joined together: https://en.m.wikipedia.org/wiki/Complex_base_systems#Base_.E...
\documentclass[border=3pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{lindenmayersystems}
\begin{document}
\begin{tikzpicture}[line width=1pt, rounded corners=4pt,
l-system={
rule set={X -> X+YF+,Y->-FX-Y},
axiom=FX, angle=90, order=11, step=10pt
}
]
\foreach \c/\r in {green/0, red/90, blue/180, orange/270}
\draw[\c, rotate=\r] l-system;
\end{tikzpicture}
\end{document}