codeworld-api-0.5.0: Graphics library for CodeWorld

Safe HaskellNone
LanguageHaskell98

CodeWorld.App

Description

Warning: This is an experimental API. It can change at any time.

Documentation

data Rule :: * -> * Source #

timeRule :: (Double -> state -> state) -> Rule state Source #

eventRule :: (Event -> state -> state) -> Rule state Source #

pictureRule :: (state -> Picture) -> Rule state Source #

multiEventRule :: (Int -> Event -> state -> state) -> Rule state Source #

multiPictureRule :: (Int -> state -> Picture) -> Rule state Source #

subrule :: (a -> b) -> (b -> a -> a) -> Rule b -> Rule a Source #

rules :: [Rule state] -> Rule state Source #

applicationOf :: world -> [Rule world] -> IO () Source #

unsafeMultiApplicationOf :: Int -> (StdGen -> state) -> [Rule state] -> IO () Source #