sage: step = 0.2
sage: L = Graphics()
sage: v = []
sage: L+= plot(sin,xmin=0,xmax=2,ymin=0,ymax=1)
sage: L+=point((.3,sin(.3)))
sage: for i in srange(0,2,step):
… L += point((.3+(2-i-step),sin(.3+(2-i-step))))
… L += line([(.3,sin(.3)),(20*(.3+(2-i)),20*sin(.3+(2-i)))], rgbcolor=(1,0,0), thickness=2,xmin=0,xmax=2,ymin=0,ymax=1,hue=.1,alpha=(.5*i))
… v.append(L)
sage: a = animate(v, xmin=0, ymin=0)
sage: dir = ‘/home/hunter/Desktop/’
sage: a.ffmpeg(savefile=dir + ‘new.avi’, delay=70, iterations=3)
sage: show(L)
sage: a.show(delay=120, iterations=0)
sageAnimate
Bookmark the permalink.