Class FadeTextSurfaceTint
Animates a color change to Tint.
Implements
Inherited Members
Namespace: SadConsole.Instructions
Assembly: SadConsole.dll
Syntax
public class FadeTextSurfaceTint : AnimatedValue, IComponent
Constructors
FadeTextSurfaceTint()
Creates a new tint fade instruction with default settings that uses the console passed to Update(IScreenObject, TimeSpan).
Declaration
public FadeTextSurfaceTint()
Remarks
FadeTextSurfaceTint(IScreenSurface, Gradient, TimeSpan)
Creates a new tint fade instruction that targets the specified console.
Declaration
public FadeTextSurfaceTint(IScreenSurface objectSurface, Gradient colors, TimeSpan duration)
Parameters
| Type | Name | Description |
|---|---|---|
| IScreenSurface | objectSurface | The Tint to fade. |
| Gradient | colors | The gradient pattern to fade through. |
| TimeSpan | duration | How long the fade takes. |
FadeTextSurfaceTint(Gradient, TimeSpan)
Creates a new tint fade instruction that uses the console passed to Update(IScreenObject, TimeSpan).
Declaration
public FadeTextSurfaceTint(Gradient colors, TimeSpan duration)
Parameters
| Type | Name | Description |
|---|---|---|
| Gradient | colors | The gradient pattern to fade through. |
| TimeSpan | duration | How long the fade takes. |
Properties
Colors
The color to fade the tint to.
Declaration
public Gradient Colors { get; set; }
Property Value
| Type | Description |
|---|---|
| Gradient |
Methods
Update(IScreenObject, TimeSpan)
Updates the timer with the time since the last call.
Declaration
public override void Update(IScreenObject componentHost, TimeSpan delta)
Parameters
| Type | Name | Description |
|---|---|---|
| IScreenObject | componentHost | |
| TimeSpan | delta | The time since the last frame update. |