Class AnimationOptions
- Namespace
- OmegaEngine
- Assembly
- OmegaEngine.dll
Options controlling an animation.
public record AnimationOptions : IEquatable<AnimationOptions>
- Inheritance
-
objectAnimationOptions
- 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
DurationTimeSpanThe duration of the complete animation.
EasingFunctionEasingFunctionThe kind of easing function to use.
EaseInboolWhether the animation should be eased in. I.e., start slowly and then speed up.
EaseOutboolWhether 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
EaseIn
Whether the animation should be eased in. I.e., start slowly and then speed up.
public bool EaseIn { get; init; }
Property Value
EaseOut
Whether the animation should be eased out. I.e., slow down at the end.
public bool EaseOut { get; init; }
Property Value
EasingFunction
The kind of easing function to use.
public EasingFunction EasingFunction { get; init; }