ContentsIndex
LSystem.Render
Description
For rendering an LSystem into a list of Plot.Components
Synopsis
data Turtle = Turtle {
tPoint :: Point
tDir :: Angle
tAngle :: Angle
tLength :: Length
tColor :: Int
tColorMap :: (Float -> Color)
}
turtleStart :: Angle -> Turtle
render :: [Turtle] -> [Command] -> Picture
pointMove :: Angle -> Distance -> Point -> Point
pointRotate :: Angle -> Point -> Point
Documentation
data Turtle
Turtle state.
Constructors
Turtlecurrent colormap.
tPoint :: Pointposition of turtle.
tDir :: Angledirection of turtle.
tAngle :: Angleangle step.
tLength :: Lengthlength step.
tColor :: Intcurrent 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