easing

package
v12.17.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package easing contains easing functions

Index

Constants

View Source
const DoublePi = math.Pi * 2

DoublePi is 2 * Pi

Variables

This section is empty.

Functions

func BackIn

func BackIn(t, b, c, d float64) float64

BackIn Accelerating from zero velocity

func BackInOut

func BackInOut(t, b, c, d float64) float64

BackInOut Acceleration until halfway, then deceleration

func BackOut

func BackOut(t, b, c, d float64) float64

BackOut Decelerating to zero velocity

func BounceIn

func BounceIn(t, b, c, d float64) float64

BounceIn accelerating from zero velocity

func BounceInOut

func BounceInOut(t, b, c, d float64) float64

BounceInOut acceleration until halfway, then deceleration

func BounceOut

func BounceOut(t, b, c, d float64) float64

BounceOut Decelerating to zero velocity

func CircIn

func CircIn(t, b, c, d float64) float64

CircIn accelerating from zero velocity

func CircInOut

func CircInOut(t, b, c, d float64) float64

CircInOut acceleration until halfway, then deceleration

func CircOut

func CircOut(t, b, c, d float64) float64

CircOut decelerating to zero velocity

func CubicIn

func CubicIn(t, b, c, d float64) float64

CubicIn accelerating from zero velocity

func CubicInOut

func CubicInOut(t, b, c, d float64) float64

CubicInOut acceleration until halfway, then deceleration

func CubicOut

func CubicOut(t, b, c, d float64) float64

CubicOut decelerating to zero velocity

func ElasticIn

func ElasticIn(t, b, c, d float64) float64

ElasticIn accelerating from zero velocity

func ElasticInOut

func ElasticInOut(t, b, c, d float64) float64

ElasticInOut acceleration until halfway, then deceleration

func ElasticOut

func ElasticOut(t, b, c, d float64) float64

ElasticOut decelerating to zero velocity

func ExpoIn

func ExpoIn(t, b, c, d float64) float64

ExpoIn accelerating from zero velocity

func ExpoInOut

func ExpoInOut(t, b, c, d float64) float64

ExpoInOut acceleration until halfway, then deceleration

func ExpoOut

func ExpoOut(t, b, c, d float64) float64

ExpoOut decelerating to zero velocity

func Linear

func Linear(t, b, c, d float64) float64

Linear no easing and no acceleration

func QuadIn

func QuadIn(t, b, c, d float64) float64

QuadIn accelerating from zero velocity

func QuadInOut

func QuadInOut(t, b, c, d float64) float64

QuadInOut acceleration until halfway, then deceleration

func QuadOut

func QuadOut(t, b, c, d float64) float64

QuadOut decelerating to zero velocity

func QuintIn

func QuintIn(t, b, c, d float64) float64

QuintIn accelerating from zero velocity

func QuintInOut

func QuintInOut(t, b, c, d float64) float64

QuintInOut acceleration until halfway, then deceleration

func QuintOut

func QuintOut(t, b, c, d float64) float64

QuintOut decelerating to zero velocity

func SineIn

func SineIn(t, b, c, d float64) float64

SineIn accelerating from zero velocity

func SineInOut

func SineInOut(t, b, c, d float64) float64

SineInOut acceleration until halfway, then deceleration

func SineOut

func SineOut(t, b, c, d float64) float64

SineOut decelerating to zero velocity

Types

type Easing

type Easing func(t, b, c, d float64) float64

Easing is type for any easing function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL