wumpus-microprint-0.13.0: Microprints - "greek-text" pictures.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Microprint

Contents

Description

MicroPrints

** WARNING ** - This module is out-of-date and is due a rethink. Teletype is no longer the recommended drawing style.

Synopsis

Re-export all 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

data Teletype a Source

Build a microprint within a monad...

Drawings are made in a teletype fashion emitting a character, space or lineMicroprint-break at each step.

data Tile Source

Constructors

Space Int 
Word RGBi Int 

Instances

linebreak :: Teletype ()Source

Emit a linebreak in the output.

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.

char :: Teletype ()Source

Draw a character - note in the microprint, characters will be concatenated together to make a word.

space :: Teletype ()Source

Draw a space.