wumpus-core-0.52.0: Pure Haskell PostScript and SVG generation.

PortabilityGHC
Stabilityunstable
Maintainerstephen.tetley@gmail.com

Wumpus.Core.OutputSVG

Contents

Description

Output SVG.

Note - the coordinate systems of Wumpus and SVG are different.

 Wumpus - (0,0) is bottom-left.
 SVG - (0,0) is top-left.

To accommodate this, Wumpus adds rectifying matrix transformations to the generated SVG code.

Synopsis

Output SVG

writeSVG :: FilePath -> Picture -> IO ()Source

Output a picture to a SVG file.

writeSVG_defs :: FilePath -> String -> Picture -> IO ()Source

writeSVG_defs : file_name -> defs -> picture -> IO ()

Output a picture to a SVG file the supplied defs are written into the defs section of SVG file verbatim.

This is considered an experimental feature, use writeSVG instead.