Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
MicroPrints
** WARNING ** - This module is out-of-date and is due a rethink. Teletype is no longer the recommended drawing style.
- module Wumpus.Microprint.Render
- renderTeletype :: RenderScalingCtx -> DrawWordF -> Teletype a -> Maybe DPicture
- renderTeletypeU :: RenderScalingCtx -> DrawWordF -> Teletype a -> DPicture
- data Teletype a
- data Tile
- type Height = Int
- linebreak :: Teletype ()
- setRGB :: RGBi -> Teletype ()
- char :: Teletype ()
- space :: Teletype ()
Re-export all Microprint.Render
module Wumpus.Microprint.Render
Top level rendering functions
renderTeletype :: RenderScalingCtx -> DrawWordF -> Teletype a -> Maybe DPictureSource
Build a picture from a Teletype drawing.
This function returns Nothing if the picture is empty.
renderTeletypeU :: RenderScalingCtx -> DrawWordF -> Teletype a -> DPictureSource
Build a picture from a Teletype - unsafe version.
This function throws a runtime error if the picture is empty.
Re-export some from MicroPrint.DrawMonad
Build a microprint within a monad...
Drawings are made in a teletype fashion emitting a character, space or lineMicroprint-break at each step.
setRGB :: RGBi -> Teletype ()Source
Change the current drawing colour.
Note - it is permissible to change colour mid-word, but this is the same as having a no-space break and forms a new word.
Draw a character - note in the microprint, characters will be concatenated together to make a word.