mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
Use newest reanimate-svg. (#197)
This commit is contained in:
parent
f4878053b1
commit
0e580e0fdf
14 changed files with 39 additions and 33 deletions
|
|
@ -11,7 +11,6 @@ import Codec.Picture
|
|||
import Codec.Picture.Types
|
||||
import Control.Lens ((&), (^.))
|
||||
import Control.Monad
|
||||
import Data.Monoid
|
||||
import Graphics.SvgTree
|
||||
import System.Random
|
||||
import "random-shuffle" System.Random.Shuffle
|
||||
|
|
@ -75,7 +74,7 @@ drawAnimation' :: Maybe Int -> Double -> Double -> SVG -> Animation
|
|||
drawAnimation' mbSeed fillDur step svg = scene $ do
|
||||
forM_ (zip [0..] $ shuf $ svgGlyphs svg) $ \(n, (fn, attr, tree)) -> do
|
||||
let sWidth =
|
||||
case toUserUnit defaultDPI <$> getLast (attr ^. strokeWidth) of
|
||||
case toUserUnit defaultDPI <$> (attr ^. strokeWidth) of
|
||||
Just (Num d) -> d
|
||||
_ -> defaultStrokeWidth
|
||||
fork $ do
|
||||
|
|
|
|||
Loading…
Reference in a new issue