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
engineEngine
DimUp(Engine)
Dims in the screen back up
public static void DimUp(this Engine engine)
Parameters
engineEngine
FadeIn(Engine)
Fades in the screen from total black in one second
public static void FadeIn(this Engine engine)
Parameters
engineEngine
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
engineEngineThe engine to use for rendering
startdoubleThe value to start off with
targetdoubleThe value to end up at
callbackAction<double>The delegate to call for with the updated interpolated value each frame
durationdoubleThe time for complete transition in seconds
trigonometricbooltruesmooth (trigonometric) andfalsefor linear interpolation