Show / Hide Table of Contents

Class ExtendedLib_SurfaceExtensions

Extensions for the IScreenSurface type

Inheritance
object
ExtendedLib_SurfaceExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole
Assembly: SadConsole.Extended.dll
Syntax
public static class ExtendedLib_SurfaceExtensions

Methods

PrintFadingText(IScreenSurface, ColoredString, Point, TimeSpan, ICellEffect?)

Declaration
public static void PrintFadingText(this IScreenSurface surfaceObject, ColoredString text, Point position, TimeSpan time, ICellEffect? effect = null)
Parameters
Type Name Description
IScreenSurface surfaceObject

The surface to draw the text on.

ColoredString text

The text to print.

Point position

The position where to print the text.

TimeSpan time

The time each glyph (one after the other) takes to print then fade.

ICellEffect effect

Optional effect to use. If null is passed, uses an instant fade.

PrintFadingText(IScreenSurface, string, Point, TimeSpan, ICellEffect?)

Prints text that blinks out the characters each after the specified time, using the default foreground and background colors of the surface.

Declaration
public static void PrintFadingText(this IScreenSurface surfaceObject, string text, Point position, TimeSpan time, ICellEffect? effect = null)
Parameters
Type Name Description
IScreenSurface surfaceObject

The surface to draw the text on.

string text

The text to print.

Point position

The position where to print the text.

TimeSpan time

The time each glyph (one after the other) takes to print then fade.

ICellEffect effect

Optional effect to use. If null is passed, uses an instant fade.

In this article

Back to top

Back to top Generated by DocFX