Add documentation for 'withViewBox'.

Former-commit-id: 2797121d09679950ac35b1bd08e9c6bfbedc5267
This commit is contained in:
David Himmelstrup 2020-05-14 10:07:05 +08:00
commit 84ba78c890
3 changed files with 21 additions and 0 deletions

10
examples/doc_withViewBox.hs Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Reanimate
main :: IO ()
main = reanimate $ animate $ const $
withViewBox (0,0,1,1) $ mkBackground "yellow"