Safe Haskell | None |
---|---|
Language | Haskell2010 |
A Scene encapsualtes all SVG elements that will be rendered to a file.
Synopsis
- data Scene
- pattern Scene :: Float -> Float -> StyleAttrs -> [Svg] -> Scene
- width :: Scene -> Float
- height :: Scene -> Float
- style :: Scene -> StyleAttrs
- elements :: Scene -> [Svg]
- mkScene :: Float -> Float -> [Layer] -> Scene
- mkSceneWithStyle :: Float -> Float -> StyleAttrs -> [Layer] -> Scene
- svgDoc :: Scene -> Svg -> Svg
- emptyScene :: Float -> Float -> StyleAttrs -> Scene
- addElement :: SvgShape s => Scene -> s -> Scene
- renderScene :: IO Scene -> IO String
Documentation
style :: Scene -> StyleAttrs Source #
mkScene :: Float -> Float -> [Layer] -> Scene Source #
Create a scene (without an associated style). Provide height, width (in inches) and a list of layers.
mkSceneWithStyle :: Float -> Float -> StyleAttrs -> [Layer] -> Scene Source #
Create a scene (with an associated style). Provide height, width (in inches), style, and a list of layers.
svgDoc :: Scene -> Svg -> Svg Source #
Given a scene and an SVG element representing it's contents, render the final scene.
emptyScene :: Float -> Float -> StyleAttrs -> Scene Source #