Portability | GHC |
---|---|
Stability | unstable |
Maintainer | stephen.tetley@gmail.com |
Safe Haskell | Safe-Infered |
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.
Output SVG
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.