Safe Haskell | None |
---|---|
Language | Haskell2010 |
Parameters define the global context of an animation. They are set once before an animation is rendered and may not change during rendering.
Synopsis
- data Raster
- type Width = Int
- type Height = Int
- type FPS = Int
- pRaster :: Raster
- pFPS :: FPS
- pWidth :: Width
- pHeight :: Height
- pNoExternals :: Bool
- pRootDirectory :: FilePath
- setRaster :: Raster -> IO ()
- setFPS :: FPS -> IO ()
- setWidth :: Width -> IO ()
- setHeight :: Height -> IO ()
- setNoExternals :: Bool -> IO ()
- setRootDirectory :: FilePath -> IO ()
Documentation
Raster engines turn SVG images into pixels.
RasterNone | Do not use any external raster engine. Rely on the browser or ffmpeg. |
RasterAuto | Scan for installed raster engines and pick the fastest one. |
RasterInkscape | Use Inkscape to raster SVG images. |
RasterRSvg | Use rsvg-convert to raster SVG images. |
RasterMagick | Use imagemagick to raster SVG images. |
pNoExternals :: Bool Source #
pRootDirectory :: FilePath Source #
Root directory of animation. Images and other data has to be placed here if they are referenced in an SVG image.
setNoExternals :: Bool -> IO () Source #
Set whether external tools are allowed.
setRootDirectory :: FilePath -> IO () Source #
Set the root animation directory.