
%  File: math-knots-picts

%  Rob Scharein
%  August 2, 1995.

%  This file is the input script to KnotPlot that generated most of the 
%  images on this page.  It is given here as an example.

%  To use it, enter the following command:

%            knotplot -stdin < math-knots-picts

afsize = 10                % Autofit every knot to size of 10.
afflag = t                 % Turn on autofitting.

ppm = 12                   % View window squish factor.
cyl = .8                   % Cylinder width.
hstart = 30                % Hue start of 30 (goldish). 
hincr= 180                 
auto-colour=off
sbuff                      % Singlebuffer mode, to avoid dithering on some
                           % systems that don't have 8 bits per colour.

back=xafafaf               % Approximately the background colour of default
                           % Mosaic and netscape background. 
                           % Will use this colour as the transparent colour
                           % when converting to gif with ppmtogif.

luxo                       % Use luxo mode.  

cyl = .6
load monster
ppm monster  5

del all
rot x -60
unknot 80 10
ppm unknot  5

del all
rot unit
cyl = .8
load square 
ppm square 8

del all
ortho 12 12 40             % Want orthographic because this gives the best
                           % pictures of the knots as in traditional diagrams.
scale = 1

knot num 2
ppm a
knot num 3
ppm b
knot num 4
ppm c

knot num 5
ppm d
knot num 6
ppm e
knot num 7
ppm f
knot num 8
ppm g
knot num 9
ppm h

!pnmcat -leftright a.ppm b.ppm c.ppm d.ppm e.ppm f.ppm g.ppm h.ppm > row1KnTb.ppm

knot num 10
ppm a
knot num 11
ppm b
knot num 12
ppm c

knot num 13
ppm d
knot num 14
ppm e
knot num 15
ppm f
knot num 16
ppm g
knot num 17
ppm h

!pnmcat -leftright a.ppm b.ppm c.ppm d.ppm e.ppm f.ppm g.ppm h.ppm > row2KnTb.ppm







hstart = 210
load 3.1
ppm rtref 6

ref z
ppm ltref 6

del all
ppm blank 6

!pnmcat -leftright ltref.ppm blank.ppm rtref.ppm >  row0KnTb.ppm

!/bin/rm ?.ppm ltref.ppm blank.ppm rtref.ppm



