reanimate/examples/doc_spriteZ.hs
David Himmelstrup ff2f7f614b Documentation (mostly for scenes) (#58)
Former-commit-id: 76fe4a261710ff744d09c9dd0a9b694f759fda41
2020-02-22 20:32:31 +08:00

14 lines
386 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 $ sceneAnimation $ do
s1 <- newSpriteSVG $ withFillOpacity 1 $ withFillColor "blue" $ mkCircle 3
_ <- newSpriteSVG $ withFillOpacity 1 $ withFillColor "red" $ mkRect 8 3
wait 1
spriteZ s1 1
wait 1