StringExpander version 1.0

StringExpander is a string-expanding demo based on Appendix C of 'The Science of Fractal Images' by Peitgen and Saupe.

It produces a graphic from an initial string (or axiom), and a set of production rules or expansion strings.

The samples included are:

Bush
Bush2
Hilbert
Koch
Sierpinski Triangle
Snowflake

Drag each one onto StringExpander to bring up the parameters dialog, then hit Run.

StringExpander takes the initial string and expands it using the expansion strings, level times.

For example, given the initial string F, the expansion string F=BFA, and a level of 3, the program expands the string to BBBFAAA.

The stages gone through are:

F
BFA
BBFAA
BBBFAAA

When the string is at full expansion, it is executed. The symbols in the string which cause drawing are:

F	Forward with Pen down
+	Turn right through Angle
-	Turn Left through Angle
f	Forward with Pen up
[	Save state on stack
}	Pop state
|	Turn back (through 180)

Other symbols are ignored.

Try changing Level to see what difference that makes.

'Autosize' is not working.


This is freeware.

Please let me have any comments, bug reports, improvements, etc. to alan@alansmith.demon.co.uk.
I'm particularly interested in whether the user interface and undos are working correctly.
This has been tested on a StarMax 4160.
