deetween

Undocumented in source.

Members

Aliases

EasingFunc
alias EasingFunc = float function(float x) pure nothrow @(nogc) @(safe)

A representation of an easing function.

Enums

TweenMode
enum TweenMode

A tween mode describes how an animation should update.

Functions

ease
float ease(float a, float b, float weight, EasingFunc f)

Interpolates between a and b by weight by using an easing function. The weight should be between 0.0 and 1.0, but this is not mandatory.

easeInBack
float easeInBack(float x)

An easing function.

easeInBounce
float easeInBounce(float x)

An easing function.

easeInCirc
float easeInCirc(float x)

An easing function.

easeInCubic
float easeInCubic(float x)

An easing function.

easeInElastic
float easeInElastic(float x)

An easing function.

easeInExpo
float easeInExpo(float x)

An easing function.

easeInOutBack
float easeInOutBack(float x)

An easing function.

easeInOutBounce
float easeInOutBounce(float x)

An easing function.

easeInOutCirc
float easeInOutCirc(float x)

An easing function.

easeInOutCubic
float easeInOutCubic(float x)

An easing function.

easeInOutElastic
float easeInOutElastic(float x)

An easing function.

easeInOutExpo
float easeInOutExpo(float x)

An easing function.

easeInOutQuad
float easeInOutQuad(float x)

An easing function.

easeInOutQuart
float easeInOutQuart(float x)

An easing function.

easeInOutQuint
float easeInOutQuint(float x)

An easing function.

easeInOutSine
float easeInOutSine(float x)

An easing function.

easeInQuad
float easeInQuad(float x)

An easing function.

easeInQuart
float easeInQuart(float x)

An easing function.

easeInQuint
float easeInQuint(float x)

An easing function.

easeInSine
float easeInSine(float x)

An easing function.

easeLinear
float easeLinear(float x)

An easing function.

easeNearest
float easeNearest(float x)

An easing function.

easeOutBack
float easeOutBack(float x)

An easing function.

easeOutBounce
float easeOutBounce(float x)

An easing function.

easeOutCirc
float easeOutCirc(float x)

An easing function.

easeOutCubic
float easeOutCubic(float x)

An easing function.

easeOutElastic
float easeOutElastic(float x)

An easing function.

easeOutExpo
float easeOutExpo(float x)

An easing function.

easeOutQuad
float easeOutQuad(float x)

An easing function.

easeOutQuart
float easeOutQuart(float x)

An easing function.

easeOutQuint
float easeOutQuint(float x)

An easing function.

easeOutSine
float easeOutSine(float x)

An easing function.

isMovingTowards
bool isMovingTowards(float a, float b, float dt)

Returns true if a is moving towards b by delta time.

lerp
float lerp(float a, float b, float weight)

Interpolates linearly between a and b by weight. The weight should be between 0.0 and 1.0, but this is not mandatory.

moveTowards
float moveTowards(float a, float b, float dt)

Interpolates linearly between a and b by delta time.

smoothMoveTowards
float smoothMoveTowards(float a, float b, float dt, float slowdown)

Interpolates smoothly between a and b by delta time by using a slowdown factor.

smoothStep
float smoothStep(float a, float b, float weight)

Interpolates between a and b with smoothing at the limits by weight. The weight should be between 0.0 and 1.0, but this is not mandatory.

smootherStep
float smootherStep(float a, float b, float weight)

Interpolates between a and b with smoothing at the limits by weight. The weight should be between 0.0 and 1.0, but this is not mandatory.

Structs

Keyframe
struct Keyframe

A keyframe is a data type that has a value and a time.

KeyframeGroup
struct KeyframeGroup

A keyframe group handles the transition from one keyframe to another keyframe.

Tween
struct Tween

A tween handles the transition from one value to another value based on a transition duration.

ValueSequence
struct ValueSequence

A value sequence handles the transition from one value to another value based on a value duration.

Meta