Table of Contents

Class AnimationOptions

Namespace
OmegaEngine
Assembly
OmegaEngine.dll

Options controlling an animation.

public record AnimationOptions : IEquatable<AnimationOptions>
Inheritance
object
AnimationOptions
Implements
Derived

Constructors

AnimationOptions(TimeSpan, EasingFunction, bool, bool)

Options controlling an animation.

public AnimationOptions(TimeSpan Duration, EasingFunction EasingFunction = EasingFunction.Sinusoidal, bool EaseIn = true, bool EaseOut = true)

Parameters

Duration TimeSpan

The duration of the complete animation.

EasingFunction EasingFunction

The kind of easing function to use.

EaseIn bool

Whether the animation should be eased in. I.e., start slowly and then speed up.

EaseOut bool

Whether the animation should be eased out. I.e., slow down at the end.

Properties

Duration

The duration of the complete animation.

public TimeSpan Duration { get; init; }

Property Value

TimeSpan

EaseIn

Whether the animation should be eased in. I.e., start slowly and then speed up.

public bool EaseIn { get; init; }

Property Value

bool

EaseOut

Whether the animation should be eased out. I.e., slow down at the end.

public bool EaseOut { get; init; }

Property Value

bool

EasingFunction

The kind of easing function to use.

public EasingFunction EasingFunction { get; init; }

Property Value

EasingFunction