mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-09 15:12:21 +00:00
* Remove redundant brackets * Various hlint fixes * Remove unused language pragrams and other fixes * Use addStatic more consistently in examples * Rename remaining usages of sceneAnimation to scene
15 lines
448 B
Haskell
Executable file
15 lines
448 B
Haskell
Executable file
#!/usr/bin/env stack
|
|
-- stack runghc --package reanimate
|
|
module Main(main) where
|
|
|
|
import Reanimate
|
|
import Reanimate.Builtin.Documentation
|
|
import Reanimate.Builtin.Slide
|
|
import Reanimate.Transition
|
|
|
|
main :: IO ()
|
|
main = reanimate $ docEnv $ pauseAtEnd 1 $ signalT (curveS 2) slideLeftT left right
|
|
where
|
|
left = drawCircle
|
|
right = staticFrame 1 (mkBackground "black") `parA`
|
|
mapA (flipXAxis . withStrokeColor "white") drawCircle
|