essence-of-live-coding-gloss-0.2.5: General purpose live coding framework - Gloss backend
Safe HaskellNone
LanguageHaskell2010

LiveCoding.Gloss.PictureM

Synopsis

Documentation

type PictureM = PictureT IO Source #

PictureT specialised to the IO monad.

type PictureT m = ReaderT [Event] (WriterT Picture m) Source #

The monad transformer that captures the effects of gloss, which are reading events and writing pictures.

You can call these effects for example by...

  • ...using ask to read the events that occurred,
  • ...composing a cell with addPicture to paint a picture.

runPictureT :: Monad m => Cell (PictureT m) a b -> Cell m ([Event], a) (Picture, b) Source #

Run the effects of the gloss monad stack by explicitly passing events and pictures.