% This file replaces the standard one in the demos directory.
% This will create 50 PPM frames for making an MPEG movie.
% No other support files are needed.

% Feb 7, 1996
% Rob Scharein

% To make the frames for the animation, copy this file to a working
% directory (you don't want to overwrite the copy in the demos directory)
% and run KnotPlot as usual.  Click on the Demos / Load Demos buttons, then
% click on the Trefoil relax button in the demos panel.  After a few minutes
% you'll have a bunch of PPM frames you can run thru something like 
% mpeg_encode to generate the MPEG file.  An alternative way of generating
% the frames that requires no interaction with KnotPlot is to issue the
% command line:

%       knotplot -stdin < tref-relax


reset all

cyl = .06
scale = 1.02
mode cfb

load demos-demo0.k

sbuff

nseg = 19

frame command "disp, nap .5, ppm %d, go 2"

frame 1 to 40

mode s
sat = .7

frame command "disp, nap .5, ppm %d"
luxo

cyl = 0.060000
frame 41
cyl = 0.077493
frame 42
cyl = 0.100086
frame 43
cyl = 0.129266
frame 44
cyl = 0.166954
frame 45
cyl = 0.215629
frame 46
cyl = 0.278495
frame 47
cyl = 0.359691
frame 48
cyl = 0.464558
frame 49
cyl = 0.600000
frame 50




