Knot Applet
I conceived of this knot-tying program in the spring of 1998 and spent 3 weeks
of the summer of 1999 and 8 weeks of the summer of 2000 to bring it to its
present form. I originally thought of it as a screen saver, but ended up
writing it in Java 1.1 using the free JDK1.1 development kit from Sun. If
I return to this project I would like to make the following improvements: 1)
make the screen size adjustable, 2) change all arithmetic from floating point
to integer, 3) provide user control of colors and lighting, 4) provide a
visual tool for adding new knots because it takes me a few hours to add a new
knot now by measuring a rope as I tie it by hand, 5) allow serialization of
Computed_Knot objects to eliminate the computation wait, 6) add text and
arrow capability 7) make a screen-saver after all. I hereby make the source
code available to anyone with the only condition being that the source code
itself not be sold.
-Mac Stevens 26 October 2000
Source code:
knot.html // the html file invoking the applet
Knot.java // the main applet file
knotlist.dat // the data file
knot.data // package relating to knot data
knot.compute // package relating to knot computation
knot.display // package for knot display
Knot.jar // archive file containing everything
Online:
http://www.home.earthlink.net/~stevensm/knot.html
http://www.home.earthlink.net/~stevensm/knot/Knot.java
http://www.home.earthlink.net/~stevensm/knot/knotlist.dat
http://www.home.earthlink.net/~stevensm/knot/data/
http://www.home.earthlink.net/~stevensm/knot/compute/
http://www.home.earthlink.net/~stevensm/knot/display/
http://www.home.earthlink.net/~stevensm/knot/Knot.jar
Note: knot.data.Knot_List has to be edited depending on whether it reads the
data file online or locally. Find the section of code with comments about web
security