Safe Haskell | None |
---|
- xturtleVersion :: (Int, String)
- data Field
- data Turtle
- class ColorClass a
- openField :: IO Field
- closeField :: Field -> IO ()
- waitField :: Field -> IO ()
- topleft :: Field -> IO ()
- center :: Field -> IO ()
- oninputtext :: Field -> (String -> IO Bool) -> IO ()
- onclick :: Field -> (Int -> Double -> Double -> IO Bool) -> IO ()
- onrelease :: Field -> (Int -> Double -> Double -> IO Bool) -> IO ()
- ondrag :: Field -> (Int -> Double -> Double -> IO ()) -> IO ()
- onmotion :: Field -> (Double -> Double -> IO ()) -> IO ()
- onkeypress :: Field -> (Char -> IO Bool) -> IO ()
- ontimer :: Field -> Int -> IO Bool -> IO ()
- newTurtle :: Field -> IO Turtle
- killTurtle :: Turtle -> IO ()
- inputs :: Turtle -> IO [TurtleInput]
- runInputs :: Turtle -> [TurtleInput] -> IO ()
- getSVG :: Turtle -> IO [SVG]
- forward :: Turtle -> Double -> IO ()
- backward :: Turtle -> Double -> IO ()
- goto :: Turtle -> Double -> Double -> IO ()
- setx :: Turtle -> Double -> IO ()
- sety :: Turtle -> Double -> IO ()
- left :: Turtle -> Double -> IO ()
- right :: Turtle -> Double -> IO ()
- setheading :: Turtle -> Double -> IO ()
- circle :: Turtle -> Double -> IO ()
- home :: Turtle -> IO ()
- undo :: Turtle -> IO ()
- sleep :: Turtle -> Int -> IO ()
- flush :: Turtle -> IO ()
- dot :: Turtle -> Double -> IO ()
- stamp :: Turtle -> IO ()
- beginfill :: Turtle -> IO ()
- endfill :: Turtle -> IO ()
- write :: Turtle -> String -> Double -> String -> IO ()
- image :: Turtle -> FilePath -> Double -> Double -> IO ()
- bgcolor :: ColorClass c => Turtle -> c -> IO ()
- clear :: Turtle -> IO ()
- addshape :: Turtle -> String -> [(Double, Double)] -> IO ()
- beginpoly :: Turtle -> IO ()
- endpoly :: Turtle -> IO [(Double, Double)]
- getshapes :: Turtle -> IO [String]
- shape :: Turtle -> String -> IO ()
- shapesize :: Turtle -> Double -> Double -> IO ()
- hideturtle :: Turtle -> IO ()
- showturtle :: Turtle -> IO ()
- penup :: Turtle -> IO ()
- pendown :: Turtle -> IO ()
- pencolor :: ColorClass c => Turtle -> c -> IO ()
- pensize :: Turtle -> Double -> IO ()
- fillcolor :: ColorClass c => Turtle -> c -> IO ()
- radians :: Turtle -> IO ()
- degrees :: Turtle -> Double -> IO ()
- speed :: Turtle -> String -> IO ()
- flushoff :: Turtle -> IO ()
- flushon :: Turtle -> IO ()
- position :: Turtle -> IO (Double, Double)
- xcor :: Turtle -> IO Double
- ycor :: Turtle -> IO Double
- distance :: Turtle -> Double -> Double -> IO Double
- heading :: Turtle -> IO Double
- towards :: Turtle -> Double -> Double -> IO Double
- isdown :: Turtle -> IO Bool
- isvisible :: Turtle -> IO Bool
- windowWidth :: Turtle -> IO Double
- windowHeight :: Turtle -> IO Double
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) |
Field functions
meta
closeField :: Field -> IO ()Source
on events
Turtle functions
meta
killTurtle :: Turtle -> IO ()Source
move turtle
setheading :: Turtle -> Double -> IO ()Source
draw
bgcolor :: ColorClass c => Turtle -> c -> IO ()Source
change states
hideturtle :: Turtle -> IO ()Source
showturtle :: Turtle -> IO ()Source
pencolor :: ColorClass c => Turtle -> c -> IO ()Source
fillcolor :: ColorClass c => Turtle -> c -> IO ()Source
informations
windowWidth :: Turtle -> IO DoubleSource
windowHeight :: Turtle -> IO DoubleSource