mod timeline¶
A Timeline which contains multiple Keyframes and allows interpolating between them.
A Keyframe’s value will start at the Keyframe’s time. It will then interpolate for the Keyframe’s specified duration, after which it will be held until the next Keyframe. If a new Keyframe starts while another one would be interpolating, the new Keyframe will take precedence (which leads to a jump to the previous Keyframe’s value at the start of the new Keyframe).
Types
Traits
Functions
Convert this duration to f32
Implemented for
Structs and Unions
A single keyframe.
Keyframes are ordered only by their time.
The start-time of this keyframe
The duration this keyframe will interpolate for
Additional data for the interpolator
The value this keyframe will interpolate to
Implementations
Functions
The argument of this keyframe (used for interpolation)
The duration this keyframe will interpolate for
The start-time of this keyframe
The value this keyframe will interpolate to
Traits implemented
A timeline which holds many keyframes and specifies the used interpolation function.
Implementations
Functions
Creates a new Timeline with the passed
default-value and the default interpolation parameters
Functions
Adds a keyframe into this Timeline
Adds multiple keyframes into this Timeline
Gets the value at the passed time. Will interpolate the keyframe.
Creates a new Timeline with the passed
default-value and the specified interpolation parameters
Traits implemented