summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-geo/examples/Animate2.tex
blob: 7b9f33e25489a60593a36c80e7fe6e738b218594 (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
56
57
58
59
60
\documentclass[a4paper]{article}
\usepackage{pstricks-add,pst-geo}
\usepackage{animate}

\definecolor{BlueDark}{cmyk}{1,1,0,0.5}
\newpsstyle{Globe}{circles,gridmap,daynight=false}
\newpsstyle{night}{fillstyle=solid,fillcolor=BlueDark,linecolor=BlueDark,opacity=0.8}
\pagestyle{empty}
\begin{document}

\begin{animateinline}[controls,autoplay,loop,
  begin={\psset{path=../data,Radius=5,Decran=100,Dobs=100,unit=0.5}%
         \begin{pspicture}(-7,-8)(7,6)},
  end={\end{pspicture}}]{8}
%		% Generate frames for -2 ... 2
  \multiframe{12}{i=0+2,ih=1+2}{%
    \psframe(-7,-8)(7,6)
    \psline(-10;48.85)(8;48.85)
    \rput(-10;48.85){\psline(3,0)\psarc{->}(0,0){2}{0}{48.85}%
                     \uput[24.4](2;24.4){48.85}}
    \expandafter\ifodd\i
      \psGlobeTellure[hour=\i,Day=24,Month=12,Year=2016,
                      all,borders](2.32,48.85000){Paris}
    \else
      \psGlobeTellure[hour=\ih,Day=24,Month=12,Year=2016,
                      all,borders](2.32,48.85000){Paris}
    \fi
  }
\end{animateinline}


\bigskip
\begin{verbatim}
\definecolor{BlueDark}{cmyk}{1,1,0,0.5}
\newpsstyle{Globe}{circles,gridmap,daynight=false}
\newpsstyle{night}{fillstyle=solid,fillcolor=BlueDark,linecolor=BlueDark,opacity=0.8}
[...]
\begin{animateinline}[controls,autoplay,loop,
  begin={\psset{path=../data,Radius=5,Decran=100,Dobs=100,unit=0.5}%
         \begin{pspicture}(-7,-7)(7,7)},
  end={\end{pspicture}}]{8}
%		% Generate frames for -2 ... 2
  \multiframe{12}{i=0+2,ih=1+2}{%
    \psframe(-7,-8)(7,6)
    \psline(-10;48.85)(8;48.85)
    \rput(-10;48.85){\psline(3,0)\psarc{->}(0,0){2}{0}{48.85}%
                     \uput[24.4](2;24.4){48.85}}
    \expandafter\ifodd\i
      \psGlobeTellure[hour=\i,Day=24,Month=12,Year=2016,
                      all,borders](2.32,48.85000){Paris}
    \else
      \psGlobeTellure[hour=\ih,Day=24,Month=12,Year=2016,
                      all,borders](2.32,48.85000){Paris}
    \fi
  }
\end{animateinline}
\end{verbatim}

\end{document}