EasingCallback

typealias EasingCallback = (time: Double) -> Double(source)

Function interface for implementing a custom easing function.

function quadraticIn(time) {
return time * time;
}
function quadraticOut(time) {
return time * (2.0 - time);
}

Parameters

time

The time in the range [0, 1].

See also