codeworld-api-0.6.0: Graphics library for CodeWorld

Safe HaskellNone
LanguageHaskell2010

CodeWorld.App2

Description

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

Documentation

data Application :: * -> * Source #

withTimeStep :: (Double -> state -> state) -> Application state -> Application state Source #

withEventHandler :: (Event -> state -> state) -> Application state -> Application state Source #

withPicture :: (state -> Picture) -> Application state -> Application state Source #

withMultiEventHandler :: (Int -> Event -> state -> state) -> Application state -> Application state Source #

withMultiPicture :: (Int -> state -> Picture) -> Application state -> Application state Source #

subapplication :: (a -> b) -> (b -> a -> a) -> Application b -> (b -> a) -> Application a Source #