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

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Microprint.Teletype

Description

A drawing monad where drawing is analogous to a teletype printing characters, spaces and linebreaks one at a time.

Synopsis

Documentation

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.