reanimate/examples/doc_oDraw.hs
David Himmelstrup 217c54ab38
cleanup (#166)
* Remove unused import.

* Add missing documentation.
2020-09-19 22:18:21 +08:00

18 lines
449 B
Haskell
Executable file

#!/usr/bin/env stack
-- stack runghc --package reanimate
{-# LANGUAGE OverloadedStrings #-}
module Main(main) where
import Reanimate
import Reanimate.Scene
import Reanimate.Builtin.Documentation
import Control.Lens
main :: IO ()
main = reanimate $ docEnv $ scene $ do
txt <- oNew $ withStrokeWidth 0 $ withFillOpacity 1 $
center $ scale 4 $ latex "oDraw"
oModify txt $ oEasing .~ id
oShowWith txt oDraw
wait 1
oHideWith txt oFadeOut