summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_en/34-02-3.ltx
blob: c28e1bed8025dc2daa9599873eb490bf62a29873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%% 
%%  A DANTE-Edition example
%% 
%%  Example 34-02-3 on page 744.
%% 
%%  Copyright (C) 2010 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{375.57637pt}
\setlength\parindent{0pt}

\usepackage[
    driver=dvips,
    web={pro},      % the layout style file of AeB
    eforms,         % supports the formfields (push buttons)
    uselayers]{aeb_pro}
\usepackage{pst-3dplot,pstricks-add}
\usepackage[nomessages]{fp}

\begin{document}
\DeclareAnime{graph}{10}{37}% call the animations
\newcommand*{\voc}{%
  \animeBld
  \definecolor{APBoceanblue}{rgb}{0.00,0.20,0.74}
  \definecolor{APBcoldblue}{rgb}{0.00,0.48,0.73}
  % viewing angle, line width, line colour, origin
  \psset{Beta=20,Alpha=50,linewidth=0.1pt,linecolor=APBcoldblue,origin={0,0,0}}%
  % figure to animate
  \parametricplotThreeD[xPlotpoints=100](80,\bi)(0,360){%
    t cos 2 mul 4 u sin 2 mul add mul   t sin 2 mul 4 u sin 2 mul add mul  u cos 4 mul}
  \parametricplotThreeD[yPlotpoints=75](0,360)(80,\bi){%
    u cos 2 mul 4 t sin 2 mul add mul   u sin 2 mul 4 t sin 2 mul add mul  t cos 4 mul}
  \parametricplotThreeD[yPlotpoints=1,linecolor=APBoceanblue,linewidth=2pt](0,360)(80,360){
    u cos 2 mul 4 t sin 2 mul add mul   u sin 2 mul 4 t sin 2 mul add mul  t cos 4 mul}%
  \eBld}% end of objects to animate
\psset{unit=0.35}%
\begin{pspicture}(-2,-8)(2,8)
\FPdiv{\myDeltaB}{280}{36}\newcommand*{\bi}{80}%
\multido{\i=1+1}{37}{\voc\FPadd{\bi}{\bi}{\myDeltaB}}% put levels behind one another
\end{pspicture}
\backAnimeBtn{24bp}{12bp}\kern1bp% buttons
\clearAnimeBtn{24bp}{12bp}\kern1bp%
\forwardAnimeBtn{24bp}{12bp}
\end{document}