diff options
author | Karl Berry <karl@freefriends.org> | 2009-06-09 00:38:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-06-09 00:38:32 +0000 |
commit | 5a5ed51adcf876db905825989f564b51d622c0dd (patch) | |
tree | e735ac11e0f5fa09d2ef7c8992654fb5ff98b39e /Master/texmf/doc/asymptote/examples/animations/slidemovies.asy | |
parent | fa0e85e77e9560d371aa26d0ddc1500c4c050e16 (diff) |
asy doc, tlpsrc patterns
git-svn-id: svn://tug.org/texlive/trunk@13675 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/animations/slidemovies.asy')
-rw-r--r-- | Master/texmf/doc/asymptote/examples/animations/slidemovies.asy | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/animations/slidemovies.asy b/Master/texmf/doc/asymptote/examples/animations/slidemovies.asy new file mode 100644 index 00000000000..205f94fbc85 --- /dev/null +++ b/Master/texmf/doc/asymptote/examples/animations/slidemovies.asy @@ -0,0 +1,47 @@ +// Slide demo. +// Command-line options to enable stepping and/or reverse video: +// asy [-u stepping=true] [-u reverse=true] slidedemo + +orientation=Landscape; + +settings.tex="pdflatex"; + +import slide; + +// Optional movie modules: +import animate; // For portable embedded PDF movies +access external; // For portable external movies +access embed; // For non-portable embedded movies + +usersetting(); + +titlepage("Slides with {\tt Asymptote}: Animations","John C. Bowman", + "University of Alberta","\today","http://asymptote.sf.net"); + +title("Embedded PDF movies (portable)"); +animation a=animation("A"); +animation b=animation("B"); +int n=20; +for(int i=0; i < 2n; ++i) { + picture pic; + size(pic,100); + draw(pic,shift(0,sin(pi/n*i))*unitsquare); + a.add(pic); + if(i < 1.5n) b.add(rotate(45)*pic); +} +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"); + +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")); + +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")); |