Safe Haskell | Safe-Infered |
---|
- xturtleVersion :: (Int, String)
- data Field
- data Turtle
- class ColorClass a
- openField :: IO Field
- closeField :: Field -> IO ()
- waitField :: Field -> IO ()
- newTurtle :: Field -> IO Turtle
- killTurtle :: Turtle -> IO ()
- forward, backward :: Turtle -> Double -> IO ()
- goto :: Turtle -> Double -> Double -> IO ()
- setx, sety :: Turtle -> Double -> IO ()
- left, setheading, right :: Turtle -> Double -> IO ()
- circle :: Turtle -> Double -> IO ()
- write :: Turtle -> String -> Double -> String -> IO ()
- bgcolor :: ColorClass c => Turtle -> c -> IO ()
- home :: Turtle -> IO ()
- clear :: Turtle -> IO ()
- undo :: Turtle -> IO ()
- sleep :: Turtle -> Int -> IO ()
- flushoff, flushon :: Turtle -> IO ()
- flush :: Turtle -> IO ()
- shape :: Turtle -> String -> IO ()
- shapesize :: Turtle -> Double -> Double -> IO ()
- speed :: Turtle -> String -> IO ()
- hideturtle, showturtle :: Turtle -> IO ()
- penup, pendown :: Turtle -> IO ()
- beginfill, endfill :: Turtle -> IO ()
- pencolor :: ColorClass c => Turtle -> c -> IO ()
- pensize :: Turtle -> Double -> IO ()
- degrees :: Turtle -> Double -> IO ()
- radians :: Turtle -> IO ()
- position :: Turtle -> IO (Double, Double)
- xcor, ycor :: Turtle -> IO Double
- heading :: Turtle -> IO Double
- towards :: Turtle -> Double -> Double -> IO Double
- distance :: Turtle -> Double -> Double -> IO Double
- isdown, isvisible :: Turtle -> IO Bool
- windowWidth, windowHeight :: Turtle -> IO Double
- onclick, onrelease :: Field -> (Int -> Double -> Double -> IO Bool) -> IO ()
- ondrag :: Field -> (Double -> Double -> IO ()) -> IO ()
- onkeypress :: Field -> (Char -> IO Bool) -> IO ()
- getInputs :: Turtle -> IO [TurtleInput]
- sendInputs :: Turtle -> [TurtleInput] -> IO ()
- getSVG :: Turtle -> IO [SVG]
meta data
xturtleVersion :: (Int, String)Source
types and classes
class ColorClass a Source
ColorClass String | |
(Integral r, Integral g, Integral b) => ColorClass (r, g, b) |
beginings and endings
closeField :: Field -> IO ()Source
killTurtle :: Turtle -> IO ()Source
move turtle
change turtle state
hideturtle, showturtle :: Turtle -> IO ()Source
turtle information
windowWidth, windowHeight :: Turtle -> IO DoubleSource
on events
save and load
sendInputs :: Turtle -> [TurtleInput] -> IO ()Source