Table of Contents

Class EngineUtilsAnimation

Namespace
OmegaEngine
Assembly
OmegaEngine.dll

Provides simple animation helpers for the Engine.

public static class EngineUtilsAnimation
Inheritance
EngineUtilsAnimation
Inherited Members

Methods

DimDown(Engine)

Dims in the screen down

public static void DimDown(this Engine engine)

Parameters

engine Engine

DimUp(Engine)

Dims in the screen back up

public static void DimUp(this Engine engine)

Parameters

engine Engine

FadeIn(Engine)

Fades in the screen from total black in one second

public static void FadeIn(this Engine engine)

Parameters

engine Engine

Interpolate(Engine, double, double, Action<double>, double, bool)

Automatically interpolates between two numeric values while rendering

public static void Interpolate(this Engine engine, double start, double target, Action<double> callback, double duration = 1, bool trigonometric = true)

Parameters

engine Engine

The engine to use for rendering

start double

The value to start off with

target double

The value to end up at

callback Action<double>

The delegate to call for with the updated interpolated value each frame

duration double

The time for complete transition in seconds

trigonometric bool

true smooth (trigonometric) and false for linear interpolation