xturtle-0.0.7: src/Graphics/X11/TurtleState.hs
module Graphics.X11.TurtleState (
TurtleState(..),
initialTurtleState,
) where
data TurtleState = TurtleState {
shape :: [(Double, Double)],
size :: Double,
position :: (Double, Double),
direction :: Double,
pendown :: Bool,
line :: Bool,
undo :: Bool,
undonum :: Int
} deriving Show
initialTurtleState :: [(Double, Double)] -> TurtleState
initialTurtleState sh = TurtleState {
shape = sh,
size = 1,
position = (0, 0),
direction = 0,
pendown = True,
line = False,
undo = False,
undonum = 1
}