I am trying to draw some Penrose tiling in order to learn more about tikz, and I can now make pics and place them.
But I can't label angles: if I use \tkzMarkAngle (which would be ideal) in pics, I get an error (or my pic fails if I add \usepackage{tkz-euclide})
My workaround doesn't work either: the arcs are not centered where I expected it (see image)
MWE:
\documentclass[tikz,border=4]{standalone}
\tikzset{
pics/dart/.style = {
code ={ %
\draw (0,0) node(O1){}
-- (0:\PhiLen) node(O2){}
-- ([turn]+144:\Len) node(O3){}
-- ([turn]-36:\Len) node(O4){}
-- cycle;
\draw[dashed] (O1) -- (O3);
% \tkzMarkAngle[color=green,size=\BigAngLen](O3,O2,O4) %ERROR
% \tkzMarkAngle[color=red,size=\SmallAngLen](O4,O1,O3) $ERROR
\draw[green] (O1) arc (0:72:\OverPhiLen); %Strange
\draw[red] (O3) arc (144:288:\OverPhiLen); %Strange
} } }
\begin{document}
\begin{tikzpicture}
\pgfmathsetlengthmacro{\Len}{5cm};
\pgfmathsetlengthmacro{\Phi}{1.6180339};
\pgfmathsetlengthmacro{\PhiLen}{\Len * \Phi };
\pgfmathsetlengthmacro{\OverPhiLen}{\Len / \Phi };
\pgfmathsetlengthmacro{\BigAngLen}{ \Len / \Phi};
\pgfmathsetlengthmacro{\SmallAngLen}{ \BigAngLen / \Phi};
\foreach \s in {0,72,144,216,288}
\draw (1,0) pic [rotate=\s] {dart};
\end{tikzpicture}
\end{document}
When I really want something like this:
(a few times over)
What am I missing?
PS: While I'm at it: how do I add a label to the angles? (And yes, I will be working on the Penrose Kites soon too).
I already looked at a really nice primer
Thanks in advance, Karl




