ease

package module
v0.0.0-...-8da417b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: MIT Imports: 1 Imported by: 30

README

Easing Functions in Go

Installation
go get -u github.com/fogleman/ease
Documentation

https://godoc.org/github.com/fogleman/ease

Usage

All easing functions take a float64 and return a float64. The input should be between 0 and 1, inclusive.

t = ease.OutElastic(t)

Some easing functions have extra parameters, like period. Here is an example:

var f ease.Function
f = ease.OutElasticFunction(0.5)
t = f(t)

Or, simply...

t = ease.OutElasticFunction(0.5)(t)

Montage


ease.Linear(t)

Linear


ease.InQuad(t)

InQuad

ease.InCubic(t)

InCubic

ease.InQuart(t)

InQuart

ease.InQuint(t)

InQuint

ease.InSine(t)

InSine

ease.InExpo(t)

InExpo

ease.InCirc(t)

InCirc

ease.InElastic(t)

InElastic

ease.InBack(t)

InBack

ease.InBounce(t)

InBounce


ease.OutQuad(t)

OutQuad

ease.OutCubic(t)

OutCubic

ease.OutQuart(t)

OutQuart

ease.OutQuint(t)

OutQuint

ease.OutSine(t)

OutSine

ease.OutExpo(t)

OutExpo

ease.OutCirc(t)

OutCirc

ease.OutElastic(t)

OutElastic

ease.OutBack(t)

OutBack

ease.OutBounce(t)

OutBounce


ease.InOutQuad(t)

InOutQuad

ease.InOutCubic(t)

InOutCubic

ease.InOutQuart(t)

InOutQuart

ease.InOutQuint(t)

InOutQuint

ease.InOutSine(t)

InOutSine

ease.InOutExpo(t)

InOutExpo

ease.InOutCirc(t)

InOutCirc

ease.InOutElastic(t)

InOutElastic

ease.InOutBack(t)

InOutBack

ease.InOutBounce(t)

InOutBounce

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InBack

func InBack(t float64) float64

func InBounce

func InBounce(t float64) float64

func InCirc

func InCirc(t float64) float64

func InCubic

func InCubic(t float64) float64

func InElastic

func InElastic(t float64) float64

func InExpo

func InExpo(t float64) float64

func InOutBack

func InOutBack(t float64) float64

func InOutBounce

func InOutBounce(t float64) float64

func InOutCirc

func InOutCirc(t float64) float64

func InOutCubic

func InOutCubic(t float64) float64

func InOutElastic

func InOutElastic(t float64) float64

func InOutExpo

func InOutExpo(t float64) float64

func InOutQuad

func InOutQuad(t float64) float64

func InOutQuart

func InOutQuart(t float64) float64

func InOutQuint

func InOutQuint(t float64) float64

func InOutSine

func InOutSine(t float64) float64

func InOutSquare

func InOutSquare(t float64) float64

func InQuad

func InQuad(t float64) float64

func InQuart

func InQuart(t float64) float64

func InQuint

func InQuint(t float64) float64

func InSine

func InSine(t float64) float64

func InSquare

func InSquare(t float64) float64

func Linear

func Linear(t float64) float64

func OutBack

func OutBack(t float64) float64

func OutBounce

func OutBounce(t float64) float64

func OutCirc

func OutCirc(t float64) float64

func OutCubic

func OutCubic(t float64) float64

func OutElastic

func OutElastic(t float64) float64

func OutExpo

func OutExpo(t float64) float64

func OutQuad

func OutQuad(t float64) float64

func OutQuart

func OutQuart(t float64) float64

func OutQuint

func OutQuint(t float64) float64

func OutSine

func OutSine(t float64) float64

func OutSquare

func OutSquare(t float64) float64

Types

type Function

type Function func(float64) float64

func InElasticFunction

func InElasticFunction(period float64) Function

func InOutElasticFunction

func InOutElasticFunction(period float64) Function

func OutElasticFunction

func OutElasticFunction(period float64) Function

Directories

Path Synopsis
scripts

Jump to

Keyboard shortcuts

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