reanimate/examples/doc_oScaleIn.hs
David Himmelstrup 51263e2fba Fix minor bug.
2020-09-01 18:17:32 +08:00

15 lines
428 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
main :: IO ()
main = reanimate $ docEnv $ scene $ do
txt <- oNew $ withStrokeWidth 0 $ withFillOpacity 1 $
center $ scale 3 $ latex "oScaleIn"
oShowWith txt $ adjustDuration (*2) . oScaleIn
wait 1; oHideWith txt oFadeOut