tart-0.3: Terminal Art
Safe HaskellNone
LanguageHaskell2010

Tart.Canvas

Synopsis

Documentation

data CanvasData Source #

Instances

Instances details
Binary CanvasData Source # 
Instance details

Defined in Tart.Canvas

merge :: Canvas -> Canvas -> IO (Canvas, [((Int, Int), (Char, Attr))]) Source #

canvasLayersToImage :: [Canvas] -> Image Source #

Create a Vty image from a list of canvas layers, with the topmost layer being the first canvas in the list. A pixel in the final image is set by looking for the first non-blank pixel in the canvas list, starting at the beginning.

The result will be as high as the least tall input canvas, and as wide as the least wide input canvas.