diff options
Diffstat (limited to 'Build/source/utils/asymptote/examples/animations')
3 files changed, 15 insertions, 9 deletions
diff --git a/Build/source/utils/asymptote/examples/animations/earthmoon.asy b/Build/source/utils/asymptote/examples/animations/earthmoon.asy index 08c578d86d2..efca043b8bc 100644 --- a/Build/source/utils/asymptote/examples/animations/earthmoon.asy +++ b/Build/source/utils/asymptote/examples/animations/earthmoon.asy @@ -62,7 +62,7 @@ draw(pic,shift(cst,0,0)*scale3(Rtl/2)*unitsphere,yellow); surface terre=scale3(Rtl/5)*unitsphere; surface lune=scale3(Rl)*unitsphere; -int n=100; +int n=50; real step=2pi/n; for(int i=0; i < n; ++i) { diff --git a/Build/source/utils/asymptote/examples/animations/sphere.asy b/Build/source/utils/asymptote/examples/animations/sphere.asy index 56c5f73e3b6..125cecc5566 100644 --- a/Build/source/utils/asymptote/examples/animations/sphere.asy +++ b/Build/source/utils/asymptote/examples/animations/sphere.asy @@ -22,11 +22,7 @@ for(int i=0; i < nbpts; ++i) { transform3 t=rotate(angle,(0,0,0),(1,0.25,0.25)); revolution r=sphere(O,3); draw(surface(r),lightgrey); -skeleton s; -r.transverse(s,reltime(r.g,0.5)); -r.longitudinal(s); -draw(s.transverse.back,linetype("8 8",8)); -draw(s.transverse.front); +draw(r,backpen=linetype("8 8",8)); animation A; diff --git a/Build/source/utils/asymptote/examples/animations/wheel.asy b/Build/source/utils/asymptote/examples/animations/wheel.asy index 2ea45f75613..6620d590850 100644 --- a/Build/source/utils/asymptote/examples/animations/wheel.asy +++ b/Build/source/utils/asymptote/examples/animations/wheel.asy @@ -1,4 +1,9 @@ import graph; + +// Uncomment the following 2 lines to support pdf animations: +// usepackage("animate"); +// settings.tex="pdflatex"; + import animation; size(0,200); @@ -24,6 +29,8 @@ guide wheel(guide g=nullpath, real a, real b, int n) real t1=0; real t2=t1+2*pi; +animation a; + draw(circle((0,0),1)); draw(wheel(t1,t2,100),linetype("0 2")); yequals(Label("$y=-1$",1.0),-1,extend=true,linetype("4 4")); @@ -34,8 +41,6 @@ pair z2=wheelpoint(t2); dot(z1); dot(z2); -animation a; - int n=10; real dt=(t2-t1)/n; for(int i=0; i <= n; ++i) { @@ -49,5 +54,10 @@ for(int i=0; i <= n; ++i) { restore(); } -// Produce the final merged gif. +erase(); + +// Merge the images into a gif animation. a.movie(BBox(0.25cm),loops=10,delay=250); + +// Merge the images into a pdf animation. +// label(a.pdf(BBox(0.25cm),delay=250,"controls",multipage=false)); |