C# Class WaveEngine.Components.Transitions.ColorFadeTransition

This class make an effect between two ColorFadeTransition pasing first to a specified color (white for example)
Inheritance: ScreenTransition
Show file Open project: WaveEngine/Components Class Usage Examples

Public Methods

Method Description
ColorFadeTransition ( System.Color transitionColor, System.TimeSpan duration ) : System

Initializes a new instance of the ColorFadeTransition class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Draw ( System.TimeSpan gameTime ) : void

Draws the specified game time.

Initialize ( ) : void

Initializes this instance.

Update ( System.TimeSpan gameTime ) : void

Updates the specified game time.

Method Details

ColorFadeTransition() public method

Initializes a new instance of the ColorFadeTransition class.
public ColorFadeTransition ( System.Color transitionColor, System.TimeSpan duration ) : System
transitionColor System.Color The transition color.
duration System.TimeSpan The transition duration.
return System

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

Draw() protected method

Draws the specified game time.
protected Draw ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The game time.
return void

Initialize() protected method

Initializes this instance.
protected Initialize ( ) : void
return void

Update() protected method

Updates the specified game time.
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The game time.
return void