Copyright | (C) 2015 Dimitri Sabadie |
---|---|
License | BSD3 |
Maintainer | Dimitri Sabadie <dimitri.sabadie@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Key type
A Key
is a point on the spline with extra information added. It can be,
for instance, left and right handles for a Bezier
curve, or whatever the
interpolation might need.
Hold v
is used to express no interpolation and holds its latest value until
the next key.
Linear v
represents a linear interpolation until the next key.
Cosine v
represents a cosine interpolation until the next key.
CubicHermite v
represents a cubic hermitian interpolation until the next
key.
Bezier l v r
represents a cubic Bezier interpolation, where l
refers
to the input – left – normal of the key and r
is the
output – right – normal of the key.
Hold a | |
Linear a | |
Cosine a | |
CubicHermite a | |
Bezier a a a |