* Remove unused import.

* Add missing documentation.
This commit is contained in:
David Himmelstrup 2020-09-19 22:18:21 +08:00 committed by GitHub
commit 217c54ab38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 143 additions and 57 deletions

16
examples/doc_oHideWith.hs Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main(main) where
import Reanimate
import Reanimate.Scene
import Reanimate.Builtin.Documentation
main :: IO ()
main = reanimate $ docEnv $ scene $ do
txt <- oNew $ withStrokeWidth 0 $ withFillOpacity 1 $
center $ scale 3 $ latex "oScaleIn"
oShowWith txt oFadeIn
-- oShowWith txt $ adjustDuration (*2) . oScaleIn
-- wait 1; oHideWith txt oFadeOut