mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-10 15:42:21 +00:00
13 lines
326 B
Haskell
Executable file
13 lines
326 B
Haskell
Executable file
#!/usr/bin/env stack
|
|
-- stack runghc --package reanimate
|
|
module Main(main) where
|
|
|
|
import Reanimate
|
|
import Reanimate.Builtin.Documentation
|
|
|
|
main :: IO ()
|
|
main = reanimate $ docEnv $ scene $ do
|
|
v <- newVar 0
|
|
_ <- newSprite $ mkCircle <$> unVar v
|
|
tweenVar v 1 $ \val -> fromToS val 3
|
|
tweenVar v 1 $ \val -> fromToS val 0
|