2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Update koch-snowflake.tex

This commit is contained in:
mathstoof 2018-09-29 06:27:01 -07:00 committed by GitHub
parent 67bcdbe270
commit b14c64bda4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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{ 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{document}