ease

package
v0.0.0-...-b9826c4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Funcs = []Func{
	Func{Name: "Linear", Ease: Linear},
	Func{Name: "InQuad", Ease: InQuad},
	Func{Name: "OutQuad", Ease: OutQuad},
	Func{Name: "InOutQuad", Ease: InOutQuad},
	Func{Name: "InCubic", Ease: InCubic},
	Func{Name: "OutCubic", Ease: OutCubic},
	Func{Name: "InOutCubic", Ease: InOutCubic},
	Func{Name: "InQuart", Ease: InQuart},
	Func{Name: "OutQuart", Ease: OutQuart},
	Func{Name: "InOutQuart", Ease: InOutQuart},
	Func{Name: "InQuint", Ease: InQuint},
	Func{Name: "OutQuint", Ease: OutQuint},
	Func{Name: "InOutQuint", Ease: InOutQuint},
	Func{Name: "Logarithm", Ease: Logarithm},
	Func{Name: "Sin", Ease: Sin},
	Func{Name: "Sqr", Ease: Sqr},
	Func{Name: "Sqrt", Ease: Sqrt},
	Func{Name: "Wobble", Ease: Wobble},
	Func{Name: "Cube", Ease: Cube},
	Func{Name: "Cube2", Ease: Cube2},
}

Functions

func Cube

func Cube(t float32) float32

func Cube2

func Cube2(t float32) float32

func InCubic

func InCubic(t float32) float32

accelerating from zero velocity

func InOutCubic

func InOutCubic(t float32) float32

acceleration until halfway, then deceleration

func InOutQuad

func InOutQuad(t float32) float32

acceleration until halfway, then deceleration

func InOutQuart

func InOutQuart(t float32) float32

acceleration until halfway, then deceleration

func InOutQuint

func InOutQuint(t float32) float32

acceleration until halfway, then deceleration

func InQuad

func InQuad(t float32) float32

accelerating from zero velocity

func InQuart

func InQuart(t float32) float32

accelerating from zero velocity

func InQuint

func InQuint(t float32) float32

accelerating from zero velocity

func Linear

func Linear(t float32) float32

no easing, no acceleration

func Logarithm

func Logarithm(t float32) float32

logarithm

func OutCubic

func OutCubic(t float32) float32

decelerating to zero velocity

func OutQuad

func OutQuad(t float32) float32

decelerating to zero velocity

func OutQuart

func OutQuart(t float32) float32

decelerating to zero velocity

func OutQuint

func OutQuint(t float32) float32

decelerating to zero velocity

func Sin

func Sin(t float32) float32

sin

func Sqr

func Sqr(t float32) float32

sqr

func Sqrt

func Sqrt(t float32) float32

sqrt

func Wobble

func Wobble(t float32) float32

wobble

Types

type Func

type Func struct {
	Name string
	Ease func(float32) float32
}

Jump to

Keyboard shortcuts

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