cnc-pattern-lib-0.1.0.0: Haskell library for creating SVG patterns for CNC routers

Safe HaskellNone
LanguageHaskell2010

Scene

Description

A Scene encapsualtes all SVG elements that will be rendered to a file.

Synopsis

Documentation

data Scene Source #

Instances
Show Scene Source # 
Instance details

Defined in Scene

Methods

showsPrec :: Int -> Scene -> ShowS #

show :: Scene -> String #

showList :: [Scene] -> ShowS #

SvgShape Scene Source # 
Instance details

Defined in Scene

Methods

toSvg :: Scene -> Svg Source #

pattern Scene :: Float -> Float -> StyleAttrs -> [Svg] -> Scene Source #

elements :: Scene -> [Svg] 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.

renderScene :: IO Scene -> IO String Source #

Render a scene to a string containin all SVG code.