mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-09 15:12:21 +00:00
17 lines
509 B
Haskell
Executable file
17 lines
509 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.Morph.Common
|
|
import Reanimate.Morph.Linear
|
|
import Graphics.SvgTree
|
|
|
|
main :: IO ()
|
|
main = reanimate $ docEnv $ playThenReverseA $ pauseAround 0.5 0.5 $ mkAnimation 3 $ \t ->
|
|
withStrokeLineJoin JoinRound $
|
|
let src = scale 8 $ center $ latex "X"
|
|
dst = scale 8 $ center $ latex "H"
|
|
in morph rawLinear src dst t
|