Documentation ¶
Overview ¶
Package ease provides default easing functions to be used in a Tween.
Index ¶
- func InBack(t, b, c, d float32) float32
- func InBounce(t, b, c, d float32) float32
- func InCirc(t, b, c, d float32) float32
- func InCubic(t, b, c, d float32) float32
- func InElastic(t, b, c, d float32) float32
- func InExpo(t, b, c, d float32) float32
- func InOutBack(t, b, c, d float32) float32
- func InOutBounce(t, b, c, d float32) float32
- func InOutCirc(t, b, c, d float32) float32
- func InOutCubic(t, b, c, d float32) float32
- func InOutElastic(t, b, c, d float32) float32
- func InOutExpo(t, b, c, d float32) float32
- func InOutQuad(t, b, c, d float32) float32
- func InOutQuart(t, b, c, d float32) float32
- func InOutQuint(t, b, c, d float32) float32
- func InOutSine(t, b, c, d float32) float32
- func InQuad(t, b, c, d float32) float32
- func InQuart(t, b, c, d float32) float32
- func InQuint(t, b, c, d float32) float32
- func InSine(t, b, c, d float32) float32
- func Linear(t, b, c, d float32) float32
- func OutBack(t, b, c, d float32) float32
- func OutBounce(t, b, c, d float32) float32
- func OutCirc(t, b, c, d float32) float32
- func OutCubic(t, b, c, d float32) float32
- func OutElastic(t, b, c, d float32) float32
- func OutExpo(t, b, c, d float32) float32
- func OutInBack(t, b, c, d float32) float32
- func OutInBounce(t, b, c, d float32) float32
- func OutInCirc(t, b, c, d float32) float32
- func OutInCubic(t, b, c, d float32) float32
- func OutInElastic(t, b, c, d float32) float32
- func OutInExpo(t, b, c, d float32) float32
- func OutInQuad(t, b, c, d float32) float32
- func OutInQuart(t, b, c, d float32) float32
- func OutInQuint(t, b, c, d float32) float32
- func OutInSine(t, b, c, d float32) float32
- func OutQuad(t, b, c, d float32) float32
- func OutQuart(t, b, c, d float32) float32
- func OutQuint(t, b, c, d float32) float32
- func OutSine(t, b, c, d float32) float32
- type TweenFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InBack ¶
InBack is a much like InQuint, but extends beyond the start away from end before snapping quickly to the end
func InBounce ¶
InBounce is a bouncing transition that slowly bounces away from start at increasing amounts before finally accelerating toward end
func InCirc ¶
InCirc is a circular transition based on the equation for half of a circle, taking the square root of t, that starts slow and speeds up
func InElastic ¶
InElastic is an elastic transition that wobbles around from the start value, extending past start and away from end, and then accelerates towards the end value at the end of the transition.
func InExpo ¶
InExpo is a exponential transition based on the 2 to power 10*t that starts slow and speeds up
func InOutBack ¶
InOutBack is a much like InOutQuint, but extends beyond both start and end values on both sides of the transition
func InOutBounce ¶
InOutBounce is a bouncing transition that bounces off of the start value, then accelerates toward the average of start and end, then does the opposite toward the end value
func InOutCirc ¶
InOutCirc is a circular transition based on the equation for half of a circle, taking the square root of t, that starts and ends slow, accelerating through the middle
func InOutCubic ¶
InOutCubic is a cubic transition based on the cube of t that starts and ends slow, accelerating through the middle
func InOutElastic ¶
InOutElastic is an elastic transition that wobbles around from the start value, towards the middle of the transition extending beyond start away from end, then rapidly toward, and beyond end value, then wobbling toward end
func InOutExpo ¶
InOutExpo is a exponential transition based on the 2 to power 10*t that starts and ends slow, accelerating through the middle
func InOutQuad ¶
InOutQuad is a quadratic transition based on the square of t that starts and ends slow, accelerating through the middle
func InOutQuart ¶
InOutQuart is a quartic transition based on the fourth power of t that starts and ends slow, accelerating through the middle
func InOutQuint ¶
InOutQuint is a quintic transition based on the fifth power of t that starts and ends slow, accelerating through the middle
func InOutSine ¶
InOutSine is a sinusoidal transition based on the cosine of t that starts and ends slow, accelerating through the middle
func InQuad ¶
InQuad is a quadratic transition based on the square of t that starts slow and speeds up
func InQuart ¶
InQuart is a quartic transition based on the fourth power of t that starts slow and speeds up
func InQuint ¶
InQuint is a quintic transition based on the fifth power of t that starts slow and speeds up
func InSine ¶
InSine is a sinusoidal transition based on the cosine of t that starts slow and speeds up
func Linear ¶
Linear is a linear interpolation of some t with respect to a total duration d between the values b and b+c
func OutBack ¶
OutBack is a much like OutQuint, but extends beyond the end away from start before easing toward end
func OutBounce ¶
OutBounce is a bouncing transition that accelerates toward the end value and then bounces back slightly in decreasing amounts until coming to reset at end
func OutCirc ¶
OutCirc is a circular transition based on the equation for half of a circle, taking the square root of t, that starts fast and slows down
func OutCubic ¶
OutCubic is a cubic transition based on the cube of t that starts fast and slows down
func OutElastic ¶
OutElastic is an elastic transition that accelerates quickly away from the start and beyond the end value and then wobbles towards the end value at the end of the transition.
func OutExpo ¶
OutExpo is a exponential transition based on the 2 to power 10*t that starts fast and slows down
func OutInBack ¶
OutInBack is a much like OutInQuint, but extends beyond the average of start and end during the middle of the transition
func OutInBounce ¶
OutInBounce is a bouncing transition that accelerates toward the average of start and end, bouncing off of the average toward start, then flips and bounces off of average toward end in increasing amounts before accelerating toward end
func OutInCirc ¶
OutInCirc is a circular transition based on the equation for half of a circle, taking the square root of t, that starts and ends fast, slowing through the middle
func OutInCubic ¶
OutInCubic is a cubic transition based on the cube of t that starts and ends fast, slowing through the middle
func OutInElastic ¶
OutInElastic is an elastic transition that accelerates towards and beyond the average of the start and end values, wobbles toward the average, wobbles out and slight away from end before accelerating toward the end value
func OutInExpo ¶
OutInExpo is a exponential transition based on the 2 to power 10*t that starts and ends fast, slowing through the middle
func OutInQuad ¶
OutInQuad is a quadratic transition based on the square of t that starts and ends fast, slowing through the middle
func OutInQuart ¶
OutInQuart is a quartic transition based on the fourth power of t that starts and ends fast, slowing through the middle
func OutInQuint ¶
OutInQuint is a quintic transition based on the fifth power of t that starts and ends fast, slowing through the middle
func OutInSine ¶
OutInSine is a sinusoidal transition based on the sine or cosine of t that starts and ends fast, slowing through the middle
func OutQuad ¶
OutQuad is a quadratic transition based on the square of t that starts fast and slows down
func OutQuart ¶
OutQuart is a quartic transition based on the fourth power of t that starts fast and slows down