-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | turtle like LOGO -- -- In ghci -- --
-- :m Graphics.X11.Turtle -- f <- openField -- t <- newTurtle f -- forward t 100 -- left t 50 ---- -- etc @package xturtle @version 0.0.15 module Graphics.X11.Turtle data Field data Turtle openField :: IO Field closeField :: Field -> IO () newTurtle :: Field -> IO Turtle killTurtle :: Turtle -> IO () forward, backward :: Turtle -> Double -> IO () left, setheading, right :: Turtle -> Double -> IO () goto :: Turtle -> Double -> Double -> IO () setx, sety :: Turtle -> Double -> IO () home :: Turtle -> IO () circle :: Turtle -> Double -> IO () undo :: 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 penup, pendown :: Turtle -> IO () isdown :: Turtle -> IO Bool bgcolor :: ColorClass c => Field -> c -> IO () rgbToColor :: Double -> Double -> Double -> Color pencolor :: ColorClass c => Turtle -> c -> IO () data Color :: * ColorName :: String -> Color colorName :: Color -> String RGB :: Word8 -> Word8 -> Word8 -> Color colorRed :: Color -> Word8 colorGreen :: Color -> Word8 colorBlue :: Color -> Word8 pensize :: Turtle -> Double -> IO () clear :: Turtle -> IO () hideturtle, showturtle :: Turtle -> IO () isvisible :: Turtle -> IO Bool shape :: Turtle -> String -> IO () shapesize :: Turtle -> Double -> IO () degrees :: Turtle -> Double -> IO () radians :: Turtle -> IO () windowWidth, windowHeight :: Turtle -> IO Double onclick :: Field -> (Int -> Double -> Double -> IO Bool) -> IO () onrelease :: Field -> (Double -> Double -> IO Bool) -> IO () ondrag :: Field -> (Double -> Double -> IO ()) -> IO () onkeypress :: Field -> (Char -> IO Bool) -> IO () waitField :: Field -> IO () xturtleVersion :: (Int, String) write :: Turtle -> String -> Double -> String -> IO () getInputs :: Turtle -> IO [TurtleInput] sendInputs :: Turtle -> [TurtleInput] -> IO () getSVG :: Turtle -> IO [SVG] class ColorClass a instance (Integral r, Integral g, Integral b) => ColorClass (r, g, b) instance ColorClass String