FadeTextSurfaceTint Class
Definition
Section titled “Definition”Animates a color change to Tint.
public class FadeTextSurfaceTint : AnimatedValue, IComponentInheritance object → UpdateComponent → InstructionBase → Wait → AnimatedValue
Implements IComponent
Constructors
Section titled “Constructors”FadeTextSurfaceTint(IScreenSurface, Gradient, TimeSpan)
Section titled “FadeTextSurfaceTint(IScreenSurface, Gradient, TimeSpan)”Creates a new tint fade instruction that targets the specified console.
public FadeTextSurfaceTint(IScreenSurface objectSurface, Gradient colors, TimeSpan duration)Parameters
Section titled “Parameters”objectSurface IScreenSurface
The Tint to fade.
colors SadRogue.Primitives.Gradient
The gradient pattern to fade through.
duration TimeSpan
How long the fade takes.
FadeTextSurfaceTint(Gradient, TimeSpan)
Section titled “FadeTextSurfaceTint(Gradient, TimeSpan)”Creates a new tint fade instruction that uses the console passed to Update(IScreenObject, TimeSpan).
public FadeTextSurfaceTint(Gradient colors, TimeSpan duration)Parameters
Section titled “Parameters”colors SadRogue.Primitives.Gradient
The gradient pattern to fade through.
duration TimeSpan
How long the fade takes.
FadeTextSurfaceTint()
Section titled “FadeTextSurfaceTint()”Creates a new tint fade instruction with default settings that uses the console passed to Update(IScreenObject, TimeSpan).
public FadeTextSurfaceTint()Remarks
Section titled “Remarks”The default settings are: - Colors: SadRogue.Primitives.Color.White to SadRogue.Primitives.Color.Black - Duration: 1 second
Properties
Section titled “Properties”Colors
Section titled “Colors”The color to fade the tint to.
public Gradient Colors { get; set; }Methods
Section titled “Methods”Update(IScreenObject, TimeSpan)
Section titled “Update(IScreenObject, TimeSpan)”Updates the timer with the time since the last call.
public override void Update(IScreenObject componentHost, TimeSpan delta)Parameters
Section titled “Parameters”componentHost IScreenObject
delta TimeSpan
The time since the last frame update.