Trait sixtyfps_corelib::properties::InterpolatedPropertyValue[][src]

pub trait InterpolatedPropertyValue: PartialEq + Default + 'static {
    fn interpolate(&self, target_value: &Self, t: f32) -> Self;
}

InterpolatedPropertyValue is a trait used to enable properties to be used with animations that interpolate values. The basic requirement is the ability to apply a progress that’s typically between 0 and 1 to a range.

Required methods

fn interpolate(&self, target_value: &Self, t: f32) -> Self[src]

Returns the interpolated value between self and target_value according to the progress parameter t that’s usually between 0 and 1. With certain animation easing curves it may over- or undershoot though.

Loading content...

Implementations on Foreign Types

impl InterpolatedPropertyValue for f32[src]

impl InterpolatedPropertyValue for i32[src]

impl InterpolatedPropertyValue for i64[src]

impl InterpolatedPropertyValue for u8[src]

Loading content...

Implementors

impl InterpolatedPropertyValue for Brush[src]

impl InterpolatedPropertyValue for Color[src]

Loading content...