Skip to content

FadeTextSurfaceTint Class

Animates a color change to Tint.

C#
public class FadeTextSurfaceTint : AnimatedValue, IComponent

Inheritance objectUpdateComponentInstructionBaseWaitAnimatedValue

Implements IComponent

FadeTextSurfaceTint(IScreenSurface, Gradient, TimeSpan)

Section titled “FadeTextSurfaceTint(IScreenSurface, Gradient, TimeSpan)”

Creates a new tint fade instruction that targets the specified console.

C#
public FadeTextSurfaceTint(IScreenSurface objectSurface, Gradient colors, TimeSpan duration)

objectSurface IScreenSurface
The Tint to fade.

colors SadRogue.Primitives.Gradient
The gradient pattern to fade through.

duration TimeSpan
How long the fade takes.

Creates a new tint fade instruction that uses the console passed to Update(IScreenObject, TimeSpan).

C#
public FadeTextSurfaceTint(Gradient colors, TimeSpan duration)

colors SadRogue.Primitives.Gradient
The gradient pattern to fade through.

duration TimeSpan
How long the fade takes.

Creates a new tint fade instruction with default settings that uses the console passed to Update(IScreenObject, TimeSpan).

C#
public FadeTextSurfaceTint()

The default settings are: - Colors: SadRogue.Primitives.Color.White to SadRogue.Primitives.Color.Black - Duration: 1 second

The color to fade the tint to.

C#
public Gradient Colors { get; set; }

Updates the timer with the time since the last call.

C#
public override void Update(IScreenObject componentHost, TimeSpan delta)

componentHost IScreenObject

delta TimeSpan
The time since the last frame update.