#
Turtle

by
Joe Strout
A Turtle is a little object that crawls over your PixelMap, sometimes
leaving trails of color with its tail. You can order it to turn, move
forward, etc.

#### Methods

**MoveTo(x,y)**: move to pixel x,y (without drawing)
**Move(dx,dy)**: move dx pixels right and py pixels down
**Move(dist)**: move forward dist pixels
**Dot()**: color the current position in current color
**LineTo(x,y)**: move and draw a line from current position
**Line(dx,dy)**: move and draw a line from current position
**Line(dist)**: move forward while drawing a line
**HLine(x1,x2,y)**: draw a horizontal line
**VLine(x,y1,y2)**: draw a vertical line

#### Public Variables

**itsX**,**itsY**: current position in pixel map
**itsAngle**: current direction (in degrees)
**itsWidth**,**itsHeight**: shape of its
"tail" (i.e. drawing pen)
**itsColor**: color (number) used in drawing
***itsPixelMap**: pointer to its pixel map

Here's the source code:

http://www-ncmir.ucsd.edu/~jstrout/classlib/gifmaker/Turtle.html

Last Updated:
6/07/96
Joe Strout (
joe@strout.net )