mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
Fix some hlint warnings, and more consistency in examples (#167)
* 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
This commit is contained in:
parent
37aa90378e
commit
0aca2333e2
63 changed files with 240 additions and 275 deletions
|
|
@ -19,13 +19,13 @@ transitionTime :: Double
|
|||
transitionTime = 0.5
|
||||
|
||||
main :: IO ()
|
||||
main = reanimate $ bg `parA`
|
||||
main = reanimate $ addStatic bg $
|
||||
chainT transition
|
||||
[animateCircleR, animateCircleP, animateRectR, animateColor
|
||||
,signalA (constantS 0) $ setDuration transitionTime animateCircleR]
|
||||
where
|
||||
transition = overlapT transitionTime fadeT
|
||||
bg = animate $ const $ mkBackgroundPixel bgColor
|
||||
bg = mkBackgroundPixel bgColor
|
||||
|
||||
animateCircleR :: Animation
|
||||
animateCircleR = mkSegment "radius" $ \t -> mkCircle (t*2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue