2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 14:28:05 +02:00
This commit is contained in:
mathstoof 2024-11-25 22:34:34 +00:00 committed by GitHub
commit f2e6e47d7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,20 @@
% \draw[fill=gray!10] { { { decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}}; % \draw[fill=gray!10] { { { decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}};
% \draw[fill=gray!10] { { decorate{ decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}}; % \draw[fill=gray!10] { { decorate{ decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}};
% \draw[fill=gray!10] { decorate{ decorate{ decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}}; % \draw[fill=gray!10] { decorate{ decorate{ decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}};
\draw[fill=gray!10] decorate{ decorate{ decorate{ decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}}; %\draw[fill=gray!10] decorate{ decorate{ decorate{ decorate{ (0,0) -- (3,0) -- (1.5,-3) -- (0,0)}}}};
%(0,0) -- (3,0) -- (1.5,-3) -- (0,0) does not form an equilateral triangle, so the Koch curves along (3,0) -- (1.5,-3) and (1.5,-3) -- (0,0) are longer than they should be
%using shifts and rotations makes an equilateral triangle easily without dealing explicitly with any irrational coordinates
\draw decorate{ decorate{ decorate{ decorate{ (0,0) -- (1,0) }}}};
\begin{scope}[shift={(1,0)}]
\begin{scope}[rotate=-120]
\draw decorate{ decorate{ decorate{ decorate{ (0,0) -- (1,0) }}}};
\end{scope}
\end{scope}
\begin{scope}[shift={(-1,0)}]
\begin{scope}[rotate around={120:(1,0)}]
\draw decorate{ decorate{ decorate{ decorate{ (0,0) -- (1,0) }}}};
\end{scope}
\end{scope}
\end{tikzpicture} \end{tikzpicture}
\end{document} \end{document}