Dragon documentation
--------------------

Here is a program to draw dragon curves on the HP48SX.

Dragon curves? Yeah, those things that you make by folding a strip of 
paper in half n times & then unfolding it so all the corners are right
angles.

Programs:

	DRAGON: generates a dragon curve of order n (n >= 3).
	SKETCH: draws a dragon curve.
	DRAWC:  (called by SKETCH).

Usage:

DRAGON: 

	1: n

Press [DRAGON]. N must be 3 or greater. Dragon returns a string of ones
and zeros to 1:. A zero is a left turn & a one is a right turn.

SKETCH:

	3: "0010011..." (a dragon curve)
	2: start
	1: r

Press [SKETCH]. The string in level 3 is a string generated by DRAGON.
Start in level 2 is the point to start drawing from. It can be in complex 
number form or in a list of binary integers (user units or pixels).
R in level one is the radius of the corners (each corner is a quarter circle).

Note: the User Units must be in the same ration of x to y as the pixels in 
PICT. The easiest way to get this is to make the user units the same as the
pixels.  For example, if PICT is #131 by #150, make the xrange 0..131 and the
yrange 0..150.

Example:

First, do #131d #150d PDIM. Then do 0 131 XRNG 0 150 YRNG.

1: 8
[DRAGON]


3: "0010011..." (the string generated by DRAGON)
2: { # 65d # 33d }
1: 3

[SKETCH]

(Sit back and enjoy.)
