Coder Social home page Coder Social logo

ease's Introduction

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

ease's People

Contributors

fogleman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.