blob: d56bdd5f4408802310d290a14ffcfdb9f5b9d571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
\input{preamble-standalone.ltx}
\begin{document}
% Ex. No. 74 (Section 16.1 : \tkzname{pgfmath})
\begin{tikzpicture}
\def\Asmall{0.7 } \def\Abig{3 } \def\B{20}%Herbert Voss
\path[fill=blue!40!black,domain=-pi:pi,samples=500,smooth,variable=\t]%
plot({\Abig*cos(\t r)+\Asmall*cos(\B*\t r)},%
{0.5*\Abig*sin(\t r)+0.5*\Asmall*sin(\B*\t r)});
\def\Asmall{0.7 } \def\Abig{3 } \def\B{10}
\path[shift={(1,1)},fill=blue!40!black,%
domain=-pi:pi,samples=500,smooth,variable=\t]%
plot({\Abig*cos(\t r)+\Asmall*cos(\B*\t r)},%
{0.5*\Abig*sin(\t r)+0.5*\Asmall*sin(\B*\t r)});
\end{tikzpicture}
\end{document}
|