mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
Fix examples.
Former-commit-id: f6a942fd37e148e86fb9b671b2a2b32afc4a3178
This commit is contained in:
parent
211374f222
commit
fd7c485c70
6 changed files with 8 additions and 6 deletions
|
|
@ -40,7 +40,8 @@ bbox2 = autoReverse $ mkAnimation 2.5 $ do
|
|||
|
||||
mkBoundingBox :: Tree -> Tree
|
||||
mkBoundingBox svg = withStrokeColor "red" $ withFillOpacity 0 $
|
||||
mkRect (Num x, Num y) (Num w) (Num h)
|
||||
translate (x+w/2) (y+h/2) $
|
||||
mkRect (Num w) (Num h)
|
||||
where
|
||||
(x, y, w, h) = boundingBox svg
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue