There are two ways to make movies.
1) Run your animation program while doing a screen capture. CamStudio for Windows. Windows Media Encoder for Windows. xvidcap for Linux. Lotus ScreenCam or Camtasia for Windows.
2) Write an image for each frame, and use a video editor to combine the frames into a movie. With Adobe Premiere you import a directory of image files. Google "make video from frames" to get info on software to do this.
Here is some info on how to do it in Linux
Date: Thu, 14 Jan 2010 16:12:52 -0500 From: Glenn WagnerTo: cga@cmu.edu Subject: Script for converting ppm files to mpeg4 movies I am sending you a script to convert the .ppm files generated by the ./animate program into a .avi file in linux for the convenience of others. the command is simply ./ppm_to_movie.sh filename in the folder containing the ppm files. The script will automatically convert them to jpgs, as is needed, then use mencoder to generate a mpeg4 file of the specified name. Note that mencoder is likely to require a specific install. ppm_to_movie.sh: #!/bin/bash for f in *ppm; do convert -quality 100 $f `basename $f ppm`jpg; done mencoder "mf://*.jpg" -mf fps=30 -o $1 -ovc lavc -lavcopts vcodec=msmpeg4v2:vbit rate=800