Function zng_var::animation::easing::cubic_bezier

source ·
pub fn cubic_bezier(
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    time: EasingTime
) -> EasingStep
Expand description

X coordinate is time, Y coordinate is function advancement. The nominal range for both is 0 to 1.

The start and end points are always (0, 0) and (1, 1) so that a transition or animation starts at 0% and ends at 100%.