|
|
|
|
|
| Description |
| For rendering an LSystem into a list of Plot.Components
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Turtle |
| Turtle state.
| | Constructors | | Turtle | current colormap.
| | tPoint :: Point | position of turtle.
| | tDir :: Angle | direction of turtle.
| | tAngle :: Angle | angle step.
| | tLength :: Length | length step.
| | tColor :: Int | current colormap index.
| | tColorMap :: (Float -> Color) | |
|
|
|
|
| turtleStart :: Angle -> Turtle |
| Make an initial turtle state.
|
|
| render :: [Turtle] -> [Command] -> Picture |
| Take a set of turtle commands and produce a picture.
|
|
| pointMove :: Angle -> Distance -> Point -> Point |
| Move a point a certain distance in a given direction.
|
|
| pointRotate :: Angle -> Point -> Point |
| Rotate a point around the origin.
|
|
| Produced by Haddock version 0.7 |