You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. import graph_settings; import animate; size(10cm); settings.tex= »pdflatex »; settings.outformat= »pdf »; pair[] interp(pair[] a1, pair[] a2, real k) { if(a1.length != a2.length) abort(« interp: arrays have differents length. »); pair[] g; int l=a1.length; g=sequence(new pair(int [...]
Animation with Asymptote – fig0150
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. /*Inspiration*/ import Lsystem; import animate; settings.tex= »pdflatex »; settings.outformat= »pdf »; animation A; size(10cm,0); string[][] rules={{« X », »^<XF^<XFX-F^>>XFX&F+>>XFX-F>X-> »}}; Lsystem3 HilbertCurve3D=Lsystem3(« X », rules, La=90, Lai=0); HilbertCurve3D.iterate(3); path3[] g=HilbertCurve3D.paths3(); triple M=(max(g)+min(g))/2; currentprojection=currentprojection=orthographic((10,10,6)); for (int angle=0; angle < 360; [...]
Animation with Asymptote – fig0140
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. /*Inspiration*/ import Lsystem; import animate; animation A; settings.tex= »pdflatex »; settings.outformat= »pdf »; size(10cm,0); string[][] rules={{« A », »[+BFA][-BFA][^BFA][&BFA]« }, {« B », « ‘(0.7071) »}}; Lsystem3 plant=Lsystem3(« A », rules, La=45); plant.iterate(5); tree3 g=plant.tree3(); for (int angle=0; angle < 360; angle += [...]
Animation with Asymptote – fig0130
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. // From an idea posted by Fabrice Couvreur import geometry; import animate; settings.tex= »pdflatex »; settings.outformat= »pdf »; point A=(0,0), B=(8,0), C=(8,10); unitsize(5cm/B.x,5cm/C.y); animation Anim,Anim1; path locus; triangle t=triangle(A,B,C); transform proj=projection(t.BC); draw(t,linewidth(bp)); label(t); [...]
Animation with Asymptote – fig0120
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. import geometry; import animate; settings.tex= »pdflatex »; settings.outformat= »pdf »; animation anim; size(12cm); point F1=(0,0), F2=(10,0); dot(« F »,F2); ellipse el1=ellipse(F1,F2,6), el2; draw(el1, linewidth(bp)); point Fp2=shift(2*el1.a,0)*F2; line tgt, saxe; pen[] p=new pen[]{0.8*green,0.8*blue,0.8*yellow,cyan}; path[] locus=sequence(new path(int [...]
Animation with Asymptote – fig0110
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. import geometry; import animate; // settings.tex= »pdflatex »; // settings.outformat= »pdf »; animation anim; size(12cm); point F1=(0,0), F2=(0,-3); dot(« F »,F1); ellipse el1=ellipse(F1,F2,2), el2; point Fp1=shift(0,2*el1.a)*F1; dot(« F’ »,Fp1); line tgt, saxe=line(F1,false,-F2); for (int i=0; i < [...]
Animation with Asymptote – fig0100
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. import animation; import graph; settings.tex= »pdflatex »; settings.outformat= »pdf »; unitsize(x=2cm,y=1.5cm); typedef real realfcn(real); real lambda=4; real T=2; real [] k=new real[3]; real [] w=new real[3]; k[0]=2pi/lambda; w[0]=2pi/T; real dk=-.5; k[1]=k[0]-dk; k[2]=k[0]+dk; real [...]
Animation with Asymptote – fig0090
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) size(0,10cm); import graph3; import animation; import solids; currentlight.background=black; settings.render=0; animation A; A.global=false; int nbpts=500; real q=2/5; real pas=5*2*pi/nbpts; int angle=4; real R=0.5; pen p=rgb(0.1,0.1,0.58); triple center=(1,1,1); transform3 T=rotate(angle,center,center+X+0.25*Y+0.3*Z); real x(real t){return center.x+R*cos(q*t)*cos(t);} real y(real t){return center.y+R*cos(q*t)*sin(t);} real z(real t){return center.z+R*sin(q*t);} [...]
Animation with Asymptote – fig0080
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) This animation is available in the Syracuse web site. import graph3; import animation; import solids; settings.render=0; animation A; A.global=false; int nbpts=500; real q=2/5; real pas=5*2*pi/nbpts; int angle=3; real R=3; unitsize(1cm); real x(real t){return R*cos(q*t)*cos(t);} real y(real t){return R*cos(q*t)*sin(t);} real z(real [...]
Animation with Asymptote – fig0070
You may view all the posts of the category « Animation » (Compiled with Asymptote version 1.86svn-r4626) Movie flash (swf)This animation is available in the Syracuse web site. import polyhedron_js; import animation; settings.tex= »pdflatex »; settings.outformat= »pdf »; // for opacity settings.render=0; animation A; size(8cm); // currentprojection=perspective(7,6,4); //if you want perspectivic look currentprojection=orthographic(1,0.5,1); //if you want othographic look currentlight=(1,1,2); // currentlight=nolight; [...]







