mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
fix order of trails
This commit is contained in:
parent
06456c44a0
commit
5552973bbd
1 changed files with 2 additions and 2 deletions
|
|
@ -54,8 +54,8 @@ trails trailDur raw = mkAnimation (duration raw) $ \t ->
|
|||
fps = 200
|
||||
|
||||
construct :: [Int] -> SVG
|
||||
construct = foldl' go (mkGroup []) where
|
||||
go acc idx = mkGroup $ [reduceOpacity acc, getFrame idx]
|
||||
construct = foldr go (mkGroup []) where
|
||||
go idx acc = mkGroup $ [reduceOpacity acc, getFrame idx]
|
||||
reduceOpacity = withGroupOpacity (fromIntegral trailFrames / fromIntegral (trailFrames + 1))
|
||||
getFrame idx = frames V.! (idx `mod` nFrames)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue