Description

A library that add flavor to motion in D programming language.

Package Information

Version2.2.2 (2017-Mar-02)
Repository https://github.com/tanitta/easing
LicenseMIT
CopyrightCopyright © 2016, tanitta
Authorstanitta
Registered bytanitta
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

easing

Dub version MIT License Build Status Dub downloads

##Description

easing is a library that add flavor to motion in D programming language.

##Usage

import easing;
auto output = input.linear;
//                  |
// easing function -+

If you would like to call with custom range,

import easing;
auto output = input.map!linear(0.0, 10.0, 0.0, 1.0);
//                      |      |    |     |    |
// easing function -----+      |    |     |    |
// min of input ---------------+    |     |    |
// max of input --------------------+     |    |
// min of output -------------------------+    |
// max of output ------------------------------+

Some functions have option.

auto output = input.easeQuadBezier(0.6, 0.7);
auto output = input.easeCubicBezier(0.0, 1.0, 1.0, 0.0);

auto output = input.easeInBack(1.5);
auto output = input.map!easeInBack(0.0, 10.0, 0.0, 1.0, 1.5);

##Easing functions

  • linear
  • easeInSine
  • easeOutSine
  • easeInOutSine
  • easeInCubic
  • easeOutCubic
  • easeInOutCubic
  • easeInQuint
  • easeOutQuint
  • easeInOutQuint
  • easeInCirc
  • easeOutCirc
  • easeInOutCirc
  • easeInElastic
  • easeOutElastic
  • easeInOutElastic
  • easeInQuad
  • easeOutQuad
  • easeInOutQuad
  • easeInQuart
  • easeOutQuart
  • easeInOutQuart
  • easeInExpo
  • easeOutExpo
  • easeInOutExpo
  • easeInBack
  • easeOutBack
  • easeInOutBack
  • easeInBounce
  • easeOutBounce
  • easeInOutBounce
  • easeCubicBezier
  • easeQuadBezier

Please look at http://easings.net/ regarding details of implemented functions.

Available versions

2.2.2 2.2.1 2.2.0 2.1.0 2.0.0 1.0.0 0.0.4 0.0.3 0.0.2 0.0.1 ~master ~stick-ci-badge ~feature-slice-arg ~change-function-args ~add-bezier