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
EngineThe engine to use for rendering
start
doubleThe value to start off with
target
doubleThe value to end up at
callback
Action<double>The delegate to call for with the updated interpolated value each frame
duration
doubleThe time for complete transition in seconds
trigonometric
booltrue
smooth (trigonometric) andfalse
for linear interpolation