reanimate/examples/doc_balloon.hs
David Himmelstrup 0ea12c58f9 More API docs.
2020-08-27 11:13:45 +08:00

14 lines
383 B
Haskell
Executable file

#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main(main) where
import Reanimate
import Reanimate.Builtin.Documentation
import Reanimate.Math.Balloon
import Graphics.SvgTree
main :: IO ()
main = reanimate $ docEnv $ pauseAtEnd 1 $ mkAnimation 5 $ \t ->
withStrokeLineJoin JoinRound $
balloon (scale 8 $ center $ latex "X") t