diff options
Diffstat (limited to 'graphics/pstricks/contrib/pst-spirograph/doc/pst-spirograph-doc.tex')
-rw-r--r-- | graphics/pstricks/contrib/pst-spirograph/doc/pst-spirograph-doc.tex | 99 |
1 files changed, 92 insertions, 7 deletions
diff --git a/graphics/pstricks/contrib/pst-spirograph/doc/pst-spirograph-doc.tex b/graphics/pstricks/contrib/pst-spirograph/doc/pst-spirograph-doc.tex index a83e72190b..b61131c97a 100644 --- a/graphics/pstricks/contrib/pst-spirograph/doc/pst-spirograph-doc.tex +++ b/graphics/pstricks/contrib/pst-spirograph/doc/pst-spirograph-doc.tex @@ -1,7 +1,7 @@ -%% $Id: pst-spirograph-doc.tex 80 2014-08-23 05:50:14Z herbert $ +%% $Id: pst-spirograph-doc.tex 81 2014-08-23 07:08:21Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside]{pst-doc} -\usepackage[utf8]{inputenc} +\errorcontextlines=150 \usepackage{pst-spirograph} \let\pstFV\fileversion \usepackage{pst-node,pst-plot} @@ -22,6 +22,9 @@ \lstset{basicstyle=\ttfamily\footnotesize} +\addbibresource{\jobname.bib} + + \begin{document} \author{Manuel Luque\\Herbert Vo\ss} \docauthor{} @@ -247,14 +250,19 @@ This value defines the look of a ``teeth''. Values greater than 30 make no real \clearpage \section{Animations} +\begin{sloppypar} With package \LPack{animate} one can easily create animations. You get a better result with -\verb:\multiframe{360}{iA=0+4}{...}: but that increases the file size of the PDF. +\verb:\multiframe{360}{iA=0+4}{...}: but that increases the file size of the PDF. To save diskspace the following +examples use a bigger angle step than useful for a single animation. +\end{sloppypar} + +%\psset{unit=0.75cm} \begin{LTXexample}[pos=t] \begin{animateinline}[ width=0.9\linewidth, - begin={\begin{pspicture}(-3.5,-3.5)(3.5,3.5)}, + begin={\begin{pspicture}(-4,-4)(4,4)}, end={\end{pspicture}}, palindrome,controls, % autoplay @@ -266,8 +274,86 @@ With package \LPack{animate} one can easily create animations. You get a better \end{LTXexample} +\psset{linewidth=0.1pt} + +\begin{LTXexample}[pos=t] +\psset{unit=0.3cm} +\begin{animateinline}[ + width=0.9\linewidth, begin={\begin{pspicture}(-11,-11)(11,11)}, end={\end{pspicture}}, palindrome,controls,]{5} +\multiframe{109}{i=0+10}{% +\psgrid[style=gridstyleA](-10,-10)(10,10)% +\ifnum\i=109 \psset{gearwheels=false}\fi +\psSpirograph[Z1=24,Z2=16,m=0.5,ap=22,TypeA=false,linewidth=0.2pt,fillstyle=solid,opacity=0.5, + polarangle=\i,circles=false,thetamax=\i,curvecolor=blue,curvewidth=2pt,HolePos=1.1,color1=magenta]} +\end{animateinline} +\end{LTXexample} + + +\iffalse +\begin{LTXexample}[pos=t] +\psset{unit=0.5cm} +\begin{animateinline}[ + width=0.9\linewidth,begin={\begin{pspicture}(-10,-10)(10,10)},end={\end{pspicture}},palindrome,controls]{5} +\multiframe{721}{i=0+2}{% +\psgrid[subgriddiv=0,gridcolor=red,unit=1.5](-10,-10)(10,10)% +\ifnum\i=721 \psset{gearwheels=false}\fi +\psSpirograph[Z1=24,Z2=18,m=0.5,ap=22,linewidth=0.025,TypeA=false,fillstyle=solid,opacity=0.5,polarangle=\i,circles=false, + thetamax=\i,curvecolor=blue,curvewidth=2pt,HolePos=1.75,color1=magenta]} +\end{animateinline} +\end{LTXexample} +\fi + + + +\begin{LTXexample}[pos=t] +\psset{unit=0.6cm} +\begin{animateinline}[ + width=0.9\linewidth,begin={\begin{pspicture}(-14,-14)(14,14)},end={\end{pspicture}},palindrome,controls]{5} +\multiframe{181}{i=0+10}{% + \psgrid[style=gridstyleA,unit=1.4](-10,-10)(10,10)% + \ifnum\i=181 \psset{gearwheels=false}\fi + \psSpirograph[Z1=50,Z2=20,m=0.2,linewidth=0.025,fillstyle=solid,opacity=0.75,polarangle=\i,circles,TypeA=false, + thetamax=\i,curvecolor=red,curvewidth=2pt,HolePos=1.05]} +\end{animateinline} +\end{LTXexample} + + +\iffalse +\begin{LTXexample}[pos=t] +\psset{unit=0.4cm} +\begin{animateinline}[ + width=0.9\linewidth,begin={\begin{pspicture}(-18,-18)(18,18)},end={\end{pspicture}},palindrome,controls]{5} +\multiframe{181}{i=0+10}{% +\psgrid[style=gridstyleA]% +\ifnum\i=181 \psset{gearwheels=false}\fi +\psSpirograph[Z1=60,Z2=24,m=0.2,linewidth=0.025,TypeA=false, + linecolor=blue,fillstyle=solid,opacity=0.75,polarangle=\i,circles=false,thetamax=\i,curvecolor=red,curvewidth=2pt,HolePos=1.7]} +\end{animateinline} +\end{LTXexample} +\fi + + + +\begin{LTXexample}[pos=t] +\psset{unit=0.25cm} +\begin{animateinline}[ + width=0.9\linewidth,begin={\begin{pspicture}(-20,-20)(20,20)},end={\end{pspicture}},palindrome,controls]{5} +\multiframe{324}{i=0+10}{% +\psgrid[subgriddiv=0,gridcolor=black!20,unit=2](-10,-10)(10,10)% +\ifnum\i=324 \psset{gearwheels=false}\fi +\psSpirograph[Z1=72,Z2=16,m=0.2,ap=10,TypeA=false,linewidth=0.02,linecolor={[rgb]{0.5 0 0 }},fillstyle=solid, + opacity=0.75,polarangle=\i,circles=false,thetamax=\i,curvecolor=blue,curvewidth=3pt, + HolePos=0.5,color1=cyan!10,color2=cyan!10,strokeopacity=0.5]% +%\psSpirograph[Z1=72,Z2=16,m=0.2,ap=10,TypeA=false,linewidth=0.02,linecolor={[rgb]{0.5 0 0 }},fillstyle=solid, +% opacity=0.75,polarangle=\i,circles=false,thetamax=\i,curvecolor=green,curvewidth=3pt, +% HolePos=1.5,color1=cyan!10,color2=cyan!10,strokeopacity=0.5] +} +\end{animateinline} +\end{LTXexample} + + -There are some more examples in the documention directory of the package. +%There are some more examples in the documention directory of the package. \clearpage @@ -279,8 +365,7 @@ There are some more examples in the documention directory of the package. \bgroup \nocite{*} \raggedright -\bibliographystyle{plain} -\bibliography{\jobname} +\printbibliography \egroup \printindex |