reanimate-1.1.1.0: Animation library based on SVGs.

CopyrightWritten by David Himmelstrup
LicenseUnlicense
Maintainerlemmih@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Reanimate.Math.Balloon

Description

 
Synopsis

Documentation

balloon :: SVG -> Double -> SVG Source #

Inflate SVG shapes like a balloon. This works by hiding corners that are more than t percent distant from the starting point relative to the maximum diameter of the shape.

Example:

animate $ balloon (scale 8 $ center $ latex "X")

balloon' :: Double -> SVG -> Double -> SVG Source #

Same as balloon' but with a given tolerance for converting SVG shapes to polygons.