summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/animations
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/animations')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/animations/embeddedmovie.asy13
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/animations/embeddedu3d.asy4
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/animations/externalmovie.asy7
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/animations/slidemovies.asy13
4 files changed, 15 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/animations/embeddedmovie.asy b/Master/texmf-dist/doc/asymptote/examples/animations/embeddedmovie.asy
index 98dfd424db8..12fdf04dedc 100644
--- a/Master/texmf-dist/doc/asymptote/examples/animations/embeddedmovie.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/animations/embeddedmovie.asy
@@ -6,8 +6,8 @@
import embed; // Add embedded movie
//import external; // Add external movie (use this form under Linux).
-// Generated needed mpeg file if it doesn't already exist.
-asy("mpg","wheel");
+// Generated needed mp4 file if it doesn't already exist.
+asy("mp4","wheel");
// Produce a pdf file.
settings.outformat="pdf";
@@ -15,10 +15,5 @@ settings.outformat="pdf";
settings.twice=true;
// An embedded movie:
-label(embed("wheel.mpg","poster,text=wheel.mpg,label=wheel.mpg",20cm,5.6cm),
- (0,0),N);
-
-// An optional button:
-label(link("wheel.mpg","Play","play"),(0,0),S);
-
-
+label(embed("wheel.mp4",20cm,5.6cm),(0,0),N);
+label(link("wheel.mp4"),(0,0),S);
diff --git a/Master/texmf-dist/doc/asymptote/examples/animations/embeddedu3d.asy b/Master/texmf-dist/doc/asymptote/examples/animations/embeddedu3d.asy
index 1116c216fe2..b30ada927c2 100644
--- a/Master/texmf-dist/doc/asymptote/examples/animations/embeddedu3d.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/animations/embeddedu3d.asy
@@ -1,6 +1,8 @@
// An embedded U3D object;
//
import embed;
+settings.tex="pdflatex";
-label(embed("dice.u3d","poster,text=(dice.u3d),3Droo=27,label=dice",settings.paperwidth,settings.paperheight));
+label(embedplayer("dice.u3d","dice","activate=pagevisible,3Droo=27",
+ settings.paperwidth,settings.paperheight));
diff --git a/Master/texmf-dist/doc/asymptote/examples/animations/externalmovie.asy b/Master/texmf-dist/doc/asymptote/examples/animations/externalmovie.asy
index 77c99528307..8dc8af74bb7 100644
--- a/Master/texmf-dist/doc/asymptote/examples/animations/externalmovie.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/animations/externalmovie.asy
@@ -6,12 +6,11 @@ import external;
settings.tex="pdflatex";
// Generated needed mpeg file if it doesn't already exist.
-asy("mpg","wheel");
+asy("mp4","wheel");
// Produce a pdf file.
settings.outformat="pdf";
// External movie: viewable even with the Linux version of acroread.
-label(embed("wheel.mpg"),(0,0),N);
-
-label(link("wheel.mpg","Play"),(0,0),S);
+label(embed("wheel.mp4"),(0,0),N);
+label(link("wheel.mp4"),(0,0),S);
diff --git a/Master/texmf-dist/doc/asymptote/examples/animations/slidemovies.asy b/Master/texmf-dist/doc/asymptote/examples/animations/slidemovies.asy
index 205f94fbc85..bbfdd21eaba 100644
--- a/Master/texmf-dist/doc/asymptote/examples/animations/slidemovies.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/animations/slidemovies.asy
@@ -33,15 +33,12 @@ display(a.pdf("autoplay,loop,controls",multipage=false));
display(b.pdf("controls",multipage=false));
// Generated needed files if they don't already exist.
-asy("mpg","wheel");
+asy("mp4","wheel");
title("External Movie (portable)");
-display(external.embed("wheel.mpg",
- "poster,text=wheel.mpg,label=wheel.mpg",20cm,5.6cm));
-display(external.link("wheel.mpg","Play","play"));
+display(external.embed("wheel.mp4",20cm,5.6cm));
+display(external.link("wheel.mp4"));
title("Embedded Movie (not portable)");
-display(embed.embed("wheel.mpg",
- "poster,text=wheel.mpg,label=wheel.mpg",
- 20cm,5.6cm));
-display(embed.link("wheel.mpg","Play","play"));
+display(embed.embed("wheel.mp4",20cm,5.6cm));
+display(embed.link("wheel.mp4"));