pub enum Ease {
Linear,
Hold,
Ease,
In,
Out,
InOut,
Back,
Smoothstep,
Bezier([f64; 4]),
}Expand description
The shape of a move over its progress u (0..1): a key’s interp (alias ease).
Variants§
Linear
Hold
Keeps this key’s value until the next key.
Ease
0.5 - 0.5 cos(pi u) (reframe’s ease).
In
Cubic, accelerating.
Out
Cubic, decelerating.
InOut
Cubic ease in and out.
Back
Decelerates past the end and settles back (overshoot).
Smoothstep
3u² − 2u³ (the audio schemas’ ease).
Bezier([f64; 4])
CSS cubic-bezier(x1, y1, x2, y2).
Implementations§
Trait Implementations§
impl Copy for Ease
impl StructuralPartialEq for Ease
Auto Trait Implementations§
impl Forget for Ease
impl Freeze for Ease
impl RefUnwindSafe for Ease
impl Send for Ease
impl Sync for Ease
impl Unpin for Ease
impl UnsafeUnpin for Ease
impl UnwindSafe for Ease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more