gluturtle-0.0.1: turtle like LOGO with glut

Safe HaskellNone

Graphics.UI.GLUT.Turtle

Contents

Synopsis

meta data

types and classes

class ColorClass a Source

Instances

Field functions

meta

on events

onclick :: Field -> (Int -> Double -> Double -> IO Bool) -> IO ()Source

onrelease :: Field -> (Int -> Double -> Double -> IO Bool) -> IO ()Source

ondrag :: Field -> (Int -> Double -> Double -> IO ()) -> IO ()Source

onmotion :: Field -> (Double -> Double -> IO ()) -> IO ()Source

onkeypress :: Field -> (Char -> IO Bool) -> IO ()Source

ontimer :: Field -> Int -> IO Bool -> IO ()Source

Turtle functions

meta

inputs :: Turtle -> IO [TurtleInput]Source

runInputs :: Turtle -> [TurtleInput] -> IO ()Source

move turtle

sleep :: Turtle -> Int -> IO ()Source

draw

bgcolor :: ColorClass c => Turtle -> c -> IO ()Source

change states

pencolor :: ColorClass c => Turtle -> c -> IO ()Source

fillcolor :: ColorClass c => Turtle -> c -> IO ()Source

informations