Enum sprite::AnimationState[][src]

pub enum AnimationState {
    Move(f64ScalarScalarScalarScalarf64),
    Rotate(f64ScalarScalarf64),
    Scale(f64ScalarScalarScalarScalarf64),
    Flip(boolbool),
    Visibility(bool),
    Blink(f64f64usizeusize),
    Fade(f64f64f64f64),
    Ease(EaseFunctionBox<AnimationState>),
}
Expand description

The state of animation

Variants

Move(f64ScalarScalarScalarScalarf64)

Tuple Fields

0: f64
1: Scalar
2: Scalar
3: Scalar
4: Scalar
5: f64

time, begin_x, begin_y, change_x, change_y, duration

Rotate(f64ScalarScalarf64)

Tuple Fields

0: f64
1: Scalar
2: Scalar
3: f64

time, begin, change, duration

Scale(f64ScalarScalarScalarScalarf64)

Tuple Fields

0: f64
1: Scalar
2: Scalar
3: Scalar
4: Scalar
5: f64

time, begin_x, begin_y, change_x, change_y, duration

Flip(boolbool)

Tuple Fields

0: bool
1: bool

flip_x, flip_y

Visibility(bool)

Tuple Fields

0: bool

visible

Tuple Fields

0: f64
1: f64
2: usize
3: usize

past_time, duration, blinked_times, total_times

Fade(f64f64f64f64)

Tuple Fields

0: f64
1: f64
2: f64
3: f64

time, begin, change, duration

Ease(EaseFunctionBox<AnimationState>)

Tuple Fields

ease_function, animation

Implementations

Update the state and change the sprite’s properties

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.