==========================
Galapago README
==========================

Galapago v0.3 (C)2001 Howard Kistler
Java LOGO app for rendering L-system structures.


ABOUT
--------------------------

Galapago is a program that uses basic LOGO language syntax and Turtle drawing to
render Lindenmayer systems (L-systems). I designed it to help me learn the math 
techniques described in the book The Algorithmic Beauty Of Plants [Prusinkiewicz
and Lindenmayer]. It has since evolved into a tool for executing LOGO scripts, 
which can be used and expanded upon by programmers, mathematicians and teachers.

Updates to this and other hexidec.com projects can be found here:

http://www.hexidec.com/

Please feel free to share any enhancements or bug reports with me at:

howard@hexidec.com


REQUIREMENTS
--------------------------

Galapago requires the following software:
    - Java 2 (Sun JDK 1.3 or compatible variant)
    - Swing Library (standard with Java 2)

Sun JDK 1.3 available here : http://java.sun.com/j2se/1.3/


CLASSES
--------------------------

These are the .class files that make up the Galapago distributions.

Galapago

    Galapago.class
    GalapagoEngine.class
    Galapago$SettingsDialog.class
    Turtle.class
    TurtleState.class
    PatternReplacer.class


SOURCES
--------------------------

These are the source and ancillary files that are included with the standard
Galapago source distribution.

MakeGalapago.bat - Batch file to (re)build the galapago.jar file
RunGalapago.bat  - Batch file for launching Galapago under Windows
howto.txt        - An introduction to Galapago and how to design scripts
readme.txt       - This document
gpl.txt          - Copy of the GNU Public License

The "source" folder contains these files for editing and building Galapago.

Galapago.java        - Source for Galapago application
GalapagoEngine.java  - Source for reusable GalapagoEngine LOGO renderer
Turtle.java          - Source for the LOGO Turtle object
TurtleState.java     - Source for the Turtle state information object
PatternReplacer.java - Source for the script pattern replacement tool
                       (in "tool" folder)
galapago.manifest    - Jar manifest file for galapago.jar


COMPILATION (OPTIONAL)
--------------------------

If you modify the included .java files, or need to recreate the .class files,
use the following commands within the "source" folder to build them.

Windows users may double-click the MakeGalapago.bat batch file, or execute them
from the command line.

You may manually compile Galapago with the following command:

    javac Galapago.java

Galapago takes no special arguments during compile. The above command assumes your
Java development environment is configured according to minimal standards and
can locate the relevant Java core files properly.

You may build the galapago.jar executable archive with the following command:

	jar cmf com\hexidec\galapago\galapago.manifest galapago.jar com\hexidec\galapago\*.class  com\hexidec\util\PatternReplacer.class


EXECUTION
--------------------------

Windows users may launch Galapago by double-clicking the batch file
"RunGalapago.bat".

You may manually execute Galapago from the command line with the following
command from within the directory containing the galapago.jar file:

    java -jar galapago.jar Galapago

Note that your CLASSPATH settings should include the "current directory"
specifier "." for this to work.


COMMAND SUMMARY
--------------------------

Run
	Runs the current script and renders the results in the main canvas.

Iterate
	Performs a pattern replacement on the current script using the defined rules
	and executes the new script. This new script becomes the current script.

Reset
	Resets the app to the base script, the iteration counter to 0, and returns
	the turtle to the home position and alignment.

Settings
	Brings up the Settings dialog, where you may change the script, rules,
	turtle home, and drawing metrics.

Exit
	Quits the application.


VERSION HISTORY
--------------------------

Galapago

0.1 (04/04/2001)
	- initial creation (04/04/2001)
0.2 (04/22/2001)
	- separated out PatternReplacer (04/05/2001)
	- separated out GalapagoEngine (04/05/2001)
0.3 (04/25/2001)
	- class now supports previously subclassed systems : Standard L-systems, Edge Replace, Node Replace (04/23/2001)
	- converted to use Swing classes (04/25/2001)
