mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Documentation (mostly for scenes) (#58)
Former-commit-id: 76fe4a261710ff744d09c9dd0a9b694f759fda41
This commit is contained in:
parent
458da0f2ec
commit
ff2f7f614b
45 changed files with 759 additions and 163 deletions
12
examples/doc_destroySprite.hs
Executable file
12
examples/doc_destroySprite.hs
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
||||
s <- newSpriteSVG $ withFillOpacity 1 $ mkCircle 1
|
||||
fork $ wait 1 >> destroySprite s
|
||||
play drawBox
|
||||
Loading…
Reference in a new issue