Documentation (mostly for scenes) (#58)

Former-commit-id: 76fe4a261710ff744d09c9dd0a9b694f759fda41
This commit is contained in:
David Himmelstrup 2020-02-22 20:32:31 +08:00 committed by GitHub
commit ff2f7f614b
45 changed files with 759 additions and 163 deletions

13
examples/doc_unVar.hs Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
module Main(main) where
import Reanimate
import Reanimate.Builtin.Documentation
main :: IO ()
main = reanimate $ docEnv $ sceneAnimation $ do
v <- newVar 0
_ <- newSprite $ mkCircle <$> unVar v
tweenVar v 1 $ \val -> fromToS val 3
tweenVar v 1 $ \val -> fromToS val 0