Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
A drawing monad where drawing is analogous to a teletype printing characters, spaces and linebreaks one at a time.
Documentation
Build a microprint within a monad...
Drawings are made in a teletype fashion emitting a character, space or lineMicroprint-break at each step.
renderTeletype :: RenderScalingCtx -> DrawWordF -> Teletype a -> TraceDrawing Double ()Source
Build a picture from a Teletype drawing.
This function returns Nothing if the picture is empty.
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.