Documentation ¶
Index ¶
- Variables
- func StartEnd(start, end, a float32, interp Interpolation) float32
- type Interpolation
- func Bounce(widths, heights []float32) Interpolation
- func BounceIn(widths, heights []float32) Interpolation
- func BounceInN(bounces int) Interpolation
- func BounceN(bounces int) Interpolation
- func BounceOut(widths, heights []float32) Interpolation
- func BounceOutN(bounces int) Interpolation
- func Circle() Interpolation
- func CircleIn() Interpolation
- func CircleOut() Interpolation
- func Elastic(value, power float32, bounces int, scale float32) Interpolation
- func ElasticIn(value, power float32, bounces int, scale float32) Interpolation
- func ElasticOut(value, power float32, bounces int, scale float32) Interpolation
- func Exp(value, power float32) Interpolation
- func ExpIn(value, power float32) Interpolation
- func ExpOut(value, power float32) Interpolation
- func Fade() Interpolation
- func Linear() Interpolation
- func Pow(power int) Interpolation
- func PowIn(power int) Interpolation
- func PowOut(power int) Interpolation
- func Sine() Interpolation
- func SineIn() Interpolation
- func SineOut() Interpolation
- func Swing(scale float32) Interpolation
- func SwingIn(scale float32) Interpolation
- func SwingOut(scale float32) Interpolation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Pow2 = Pow(2) Pow2In = PowIn(2) Pow2Out = PowOut(2) Pow3 = Pow(3) Pow3In = PowIn(3) Pow3Out = PowOut(3) Pow4 = Pow(4) Pow4In = PowIn(4) Pow4Out = PowOut(4) Pow5 = Pow(5) Pow5In = PowIn(5) Pow5Out = PowOut(5) Exp10 = Exp(2, 10) Exp10In = ExpIn(2, 10) Exp10Out = ExpOut(2, 10) Exp5 = Exp(2, 5) Exp5In = ExpIn(2, 5) Exp5Out = ExpOut(2, 5) Elastic2 = Elastic(2, 10, 7, 1) Elastic2In = ElasticIn(2, 10, 6, 1) Elastic2Out = ElasticOut(2, 10, 7, 1) Swing2 = Swing(1.5) Swing2In = SwingIn(2) Swing2Out = SwingOut(2) Bounce4 = BounceN(4) Bounce4In = BounceInN(4) Bounce4Out = BounceOutN(4) )
Functions ¶
func StartEnd ¶
func StartEnd(start, end, a float32, interp Interpolation) float32
type InterpolationStartEnd func(start, end, a float32, interp Interpolation) An Interpolation func which has a start and end limit
Types ¶
type Interpolation ¶
Takes a linear value in the range of 0-1 and outputs a (usually) non-linear, interpolated value.
func Bounce ¶
func Bounce(widths, heights []float32) Interpolation
func BounceIn ¶
func BounceIn(widths, heights []float32) Interpolation
func BounceInN ¶
func BounceInN(bounces int) Interpolation
func BounceN ¶
func BounceN(bounces int) Interpolation
func BounceOut ¶
func BounceOut(widths, heights []float32) Interpolation
func BounceOutN ¶
func BounceOutN(bounces int) Interpolation
func Circle ¶
func Circle() Interpolation
func CircleIn ¶
func CircleIn() Interpolation
func CircleOut ¶
func CircleOut() Interpolation
func ElasticOut ¶
func ElasticOut(value, power float32, bounces int, scale float32) Interpolation
func Exp ¶
func Exp(value, power float32) Interpolation
func ExpIn ¶
func ExpIn(value, power float32) Interpolation
func ExpOut ¶
func ExpOut(value, power float32) Interpolation
func Fade ¶
func Fade() Interpolation
func Linear ¶
func Linear() Interpolation
func Pow ¶
func Pow(power int) Interpolation
func PowIn ¶
func PowIn(power int) Interpolation
func PowOut ¶
func PowOut(power int) Interpolation
func Sine ¶
func Sine() Interpolation
func SineIn ¶
func SineIn() Interpolation
func SineOut ¶
func SineOut() Interpolation
func Swing ¶
func Swing(scale float32) Interpolation
func SwingIn ¶
func SwingIn(scale float32) Interpolation
func SwingOut ¶
func SwingOut(scale float32) Interpolation
Click to show internal directories.
Click to hide internal directories.