|
|
|
|
|
| Description |
| Turtle Command and LSystem types.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Command |
| Turtle Commands.
| | Constructors | | Forward | Move the turtle forward, drawing a line.
| | Jump | Jump the turtle forward, not drawing a line.
| | ScaleLength Float | Scale the current draw distance.
| | ScaleAngle Float | Scale the current turn step
| | TurnLeft | Turn the turtle left by the current turn step.
| | TurnRight | Turn the turtle right by the current turn step.
| | ColorStep Int | Increment the colormap index by the given amount (+ve or -ve)
| | Save | Save the current turtle state.
| | Restore | Restore the current turtle state.
| | Repeat Int Command | Repeat this command the given number of times.
| | Var String | A variable.
|
| Instances | |
|
|
| type Axiom = [Command] |
| An axiom is a list of commands.
|
|
| type Rule = (Command, [Command]) |
| A rule is a variable bound to a list of commands.
|
|
| type Distance = Float |
|
| type Angle = Float |
|
| type Length = Float |
|
| type LSystem = (String, Angle, [Command], [(Command, [Command])]) |
| The LSystem type.
|
|
| Produced by Haddock version 0.7 |